From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26618 invoked by alias); 16 Oct 2016 18:29:49 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 39660 Received: (qmail 22410 invoked from network); 16 Oct 2016 18:29:49 -0000 X-Qmail-Scanner-Diagnostics: from mail-yw0-f178.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.161.178):SA:0(0.0/5.0):. Processed in 0.154541 secs); 16 Oct 2016 18:29:49 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM,SPF_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: baptiste.daroussin@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.161.178 as permitted sender) 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=d0x90O42RIAqXXm3YdTWlOQkFR4VP2DdQhr9CPuY2wo=; b=irYr61ZaNzZHyvVEDpzDzb/aCe73PvsQL9K6FwkapSMXCjVTWWiSas5aC6wpZcJWzF 439ElMemkYbVdOXxa6J9o8COmGkwMWuJVX182iTAWdofUY22k4WINGOx2QUWLiOwWA6K QlmiaDKfpYyl0U+/X5gMtGMS7WFbPBlBREY0MW9EuX5+rizMX19mwjduiwVDzF36/kdM bF38Y8GdMFh0eem7l92AbLzSdZ4jBFNsOVZpw9mgbL0mPVIDPKhYS5dJS4rK3n4aZDvN qEXSoAzhkZLA6KsXSwV6/EL0bMMJk60Rqm5rildcDA/0CUHjTOJY2yUmy/Sk0m2uDzaK XUrA== X-Gm-Message-State: AA6/9RnWgYq3CPDnxYdVTqBn47iwt78ApyNDt0P7TRYq/Cr5hrpV/JagxBkY/39E3A9jkDbk6g8L0M/P4gGDZA== X-Received: by 10.129.132.210 with SMTP id u201mr20303301ywf.105.1476642583722; Sun, 16 Oct 2016 11:29:43 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <86mxokm60k.fsf@gmail.com> References: <868w06l3cq.fsf@gmail.com> <101204102844.ZM5983@torch.brasslantern.com> <86tyisv48o.fsf@gmail.com> <101205055913.ZM32440@torch.brasslantern.com> <86mxokm60k.fsf@gmail.com> From: Baptiste Daroussin Date: Sun, 16 Oct 2016 20:29:23 +0200 Message-ID: Subject: Re: time builtin vs. time(1): difference in memory numbers To: Zsh workers Content-Type: text/plain; charset=UTF-8 2010-12-05 19:25 GMT+01:00 Anonymous : > Bart Schaefer 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 >> 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 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