From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5267 invoked by alias); 17 Oct 2016 19:51:20 -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: 39668 Received: (qmail 22934 invoked from network); 17 Oct 2016 19:51:20 -0000 X-Qmail-Scanner-Diagnostics: from out1-smtp.messagingengine.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(66.111.4.25):SA:0(0.0/5.0):. Processed in 0.857204 secs); 17 Oct 2016 19:51:20 -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=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=oORaXLBBjBCihRe6/T2SlkizHvM=; b=biycAW TWThAplCSOePfJQJRsPDyjHMobwM0KIdP4dvdUwhw0GxjC5Y2BsHPXWHwPzWwi/u tmaTooKv5MpxOuiK4ZclNvGxwQO/x8QPLDLudpaIsmCPu/Z1eoC4fUPX7KCoRPqk L74uBjwmqvDTzTB9JiynKHd5+8YckN5fWPuuA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=oORaXLBBjBCihRe6/T2SlkizHvM=; b=Ljt3B oD2EcMGniExLAvKnfwx2rYXSZE6bnvrQaLakAy8lPAPAlYaLhLaTYNSozcvdZF+b 3noJTrZEuYUjUCyGt6RFTTCWISwTf9wTFeelhWwGeoWmHjmbS9EInqQM+FqowQva YbSrDhR5c5ZWDDmspGF2bQb57hpo6fmHH+uvPQ= X-Sasl-enc: gMiTtUcW8iOr9ioFSKYutQgEU1bGlyyo6JfjjTDW7XaZ 1476733870 Date: Mon, 17 Oct 2016 19:49:18 +0000 From: Daniel Shahaf To: Baptiste Daroussin Cc: Peter Stephenson , Zsh workers Subject: Re: time builtin vs. time(1): difference in memory numbers Message-ID: <20161017194918.GA31528@fujitsu.shahaf.local2> References: <868w06l3cq.fsf@gmail.com> <101204102844.ZM5983@torch.brasslantern.com> <86tyisv48o.fsf@gmail.com> <101205055913.ZM32440@torch.brasslantern.com> <86mxokm60k.fsf@gmail.com> <20161017094725.6c57f0f2@pwslap01u.europe.root.pri> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Baptiste Daroussin wrote on Mon, Oct 17, 2016 at 18:27:59 +0200: > 2016-10-17 10:47 GMT+02:00 Peter Stephenson : > > On Sun, 16 Oct 2016 20:29:23 +0200 > > Baptiste Daroussin wrote: > >> 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?) > > > > The safest way would probably be #ifdef's for Free BSD, unless someone > > is going to do a wider investigation into variant system behaviour. > > > > The "long clktck" declaration needs to go with the declarations at the > > top. > > > > pws > > I think the ru_maxrss part is valid for linux as well. (unsure) On Debian stable, getrusage(2) sas: ru_maxrss (since Linux 2.6.32) This is the maximum resident set size used (in kilobytes). For RUSAGE_CHILDREN, this is the resident set size of the largest child, not the maximum resident set size of the process tree.