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 39660
- From: Baptiste Daroussin <baptiste.daroussin@xxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: time builtin vs. time(1): difference in memory numbers
- Date: Sun, 16 Oct 2016 20:29:23 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=d0x90O42RIAqXXm3YdTWlOQkFR4VP2DdQhr9CPuY2wo=; b=GsIkN2SYjDuTr+XexYWRb6U9y9hKkMWV4ZQO24SjudG462jzuYW3fja4T0ZJifCtYa ZzGlAjep31XuAsU9RJQCivyvox3kLsE3ZxOny0keD7Mxpf8FWZJgPP9ae1bn5UTWiECL A8l6nwX+oYzzhfdUP1BEa9OXjSXIXGBQP2cLxmj6GIIVCKAgLRLecZGnuqBocnnYZMUm tpyF4h/OJLsjC2nI1fMQaaHHbXtg4WX5VtXnPykpU5/+W4dfDMXAX3CdrDoLhblEylrb crTgQ/mLXAzETANOavgWeWGy4hBf4HTBXNFK29bDk8lyx7j0DQ1+fk2W7y5UZydqjt31 Q8Ow==
- In-reply-to: <86mxokm60k.fsf@gmail.com>
- 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@gmail.com> <101204102844.ZM5983@torch.brasslantern.com> <86tyisv48o.fsf@gmail.com> <101205055913.ZM32440@torch.brasslantern.com> <86mxokm60k.fsf@gmail.com>
2010-12-05 19:25 GMT+01:00 Anonymous <swell.k@xxxxxxxxx>:
> 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
I would like to revive this thread as we are having this patch in
FreeBSD for a while now.
https://people.freebsd.org/~bapt/getrusage.diff
What would be the next step to get it upstream (and modified if needed?)
Best regards,
Bapt
Messages sorted by:
Reverse Date,
Date,
Thread,
Author