Re: time-1.7 counts rusage wrong on Linux

"Thomas Bushnell, BSG" <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <CA+YjuxtQVp-0P_95htNid=uMkx_YCXZVz5+R4b-iGTF2etosDg@mail.gmail.com>
That's splendid; we saw the bug in ubuntu precise, which is 1.7-23.1; I
presume the patch was added only in 1.7-24?


On Sat, Feb 16, 2013 at 3:04 PM, Bob Proulx <[email protected]> wrote:

> David C Niemi wrote:
> > Thomas Bushnell, BSG wrote:
> > > Please keep me in the reply list on replies; I'm not subscribed to
> > > bug-gnu-utils.
> > > ...
> > > time-1.7 converts rusage values from page size units to K,
> unconditionally,
> > > but this is wrong at least on Linux, where they are already reported
> in K.
> > > That results in time printing out values that are four times too big.
> > >
> > > The source contains the comment "Note: Some machines express getrusage
> > > statistics in terms of K, others in terms of pages." but has no actual
> code
> > > that attempts to tell or ever works for those "some machines".
> >
> > I think I have a patch for this lying around somewhere.  I will take
> > care of it in the next release.
>
> I maintain patches for time-1.7 for Debian.  These patches are
> available for viewing here:
>
>   http://patch-tracker.debian.org/package/time/1.7-24
>
> Of which the two you are most interested in are these:
>
>
> http://patch-tracker.debian.org/patch/series/view/time/1.7-24/rusage-portability.patch
>
>
> http://patch-tracker.debian.org/patch/series/view/time/1.7-24/ru_maxrss.patch
>
> However the others are also important and useful.
>
> Bob
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.