Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: time builtin vs. time(1): difference in memory numbers
- X-seq: zsh-workers 28477
- From: Anonymous <swell.k@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: time builtin vs. time(1): difference in memory numbers
- Date: Sun, 05 Dec 2010 21:25:15 +0300
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:message-id:user-agent:mime-version:content-type; bh=267e7zaQ46T9L6adkjfhSeaxB1u81SqeRCu1Djzofes=; b=sFqgk7yVodTQKNPzVaws0hbsXkzUxG5rJS9f20pvBbG7n58wJqKWMthv9GCaqNcz+k rv9s3vVXqdCVyKGgAuO3hBTUD7YNrk2rwPhWaAtJgGHdcLQE0vDDRtDIGHjV15c82RgM s3SYZlF+c7NXWJ3Q7RfikCkE1KNVj7oFqTDTU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version:content-type; b=ap7jOHyxkTcx3KGhnrt3mR3UqsbBFOn90Kwejn82deAyxHWkO42XHCkSBm3VY4tG// zKa2+9bIeR787T/OF2TcwJcOrM1lZ67UA4Vds0aXvGaA2QvG+UlPQs+tUHt6IAPx9h0T hD96LpP+BFnZt3DQaqqqArsISvGlgEEKdk1qw=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <868w06l3cq.fsf@xxxxxxxxx> <101204102844.ZM5983@xxxxxxxxxxxxxxxxxxxxxx> <86tyisv48o.fsf@xxxxxxxxx> <101205055913.ZM32440@xxxxxxxxxxxxxxxxxxxxxx>
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> writes:
> On Dec 5, 2:38pm, Anonymous wrote:
> } Subject: Re: time builtin vs. time(1): difference in memory numbers
> }
> } According to getrusage(2) on BSDs ixrss/idrss/isrss are "expressed in
> } units of kilobytes * ticks-of-execution". So, I've made a quick hack
> }
> } http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/152820
>
> Looks like it'd be appropriate to wrap that first hunk in
> #ifdef _SC_CLK_TCK
> ??
Does Linux needs to divide them by ticks, too?
>
> I'm curious if FreeBSD has anything like this (from <asm/param.h>
> on RHEL4):
>
> #define HZ sysconf(_SC_CLK_TCK)
No but I'm just an average user. Note, sysconf(_SC_CLK_TCK) returns
CLK_TCK (a constant) defined in <time.h> that may differ from the value
used by getrusage(). [1]
[1] NetBSD does get its value from kern.clockrate sysctl
and there was a discussion to port it to FreeBSD
http://docs.freebsd.org/cgi/mid.cgi?20020701142849.U6692-100000
Messages sorted by:
Reverse Date,
Date,
Thread,
Author