[Bug 742248] Re: time reports incorrect max rss

2017-10-27 Thread Bug Watch Updater
Launchpad has imported 12 comments from the remote bug at
https://bugzilla.redhat.com/show_bug.cgi?id=702826.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.


On 2011-05-07T14:07:30+00:00 Michael wrote:

Description of problem:

GNU time can print out the maximum RSS usage of its subprocess. The
ru_maxrss value returned by the wait4 syscall is in units of kilobytes,
but GNU time incorrectly treats this as a number of pages, multiplying
the value by 4 before displaying it.

Version-Release number of selected component (if applicable):
time-1.7-37.fc12.i686

How reproducible: Always

Steps to Reproduce:
1. /usr/bin/time -f %M perl -e '"x" x 400 x 1024 x 1024'
  
Actual results: A bit over 160, indicating maximum RSS usage of 1.6 GB. 
This is not even possible on my system as it only has 1 GB of physical RAM.

Expected results: Approximately 40, since Perl should only be
allocating around 400 MB.

Additional info:

Applying strace to the above command, it is clear that time is
multiplying the ru_maxrss value returned by wait4:

$ strace -ve wait4 /usr/bin/time -f %M perl -e '"x" x 400 x 1024 x 1024'
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, {ru_utime={0, 146977}, 
ru_stime={0, 676897}, ru_maxrss=411356, ru_ixrss=0, ru_idrss=0, ru_isrss=0, 
ru_minflt=102901, ru_majflt=1, ru_nswap=0, ru_inblock=176, ru_oublock=0, 
ru_msgsnd=0, ru_msgrcv=0, ru_nsignals=0, ru_nvcsw=1, ru_nivcsw=40}) = 7459
--- {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7459, si_status=0, 
si_utime=14, si_stime=68} (Child exited) ---
1645424

According to the getrusage(2) manpage:

  ru_maxrss (since Linux 2.6.32)
 This is the maximum resident set size used (in kilobytes). [...]

I've attached a simple patch that simply skips the "pages to kilobytes"
conversion for this field.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248/comments/2


On 2011-05-07T14:09:53+00:00 Michael wrote:

Created attachment 497533
Do not incorrectly convert ru_maxrss

Reply at:
https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248/comments/3


On 2011-05-11T12:52:21+00:00 Petr wrote:

All Fedoras affected (time-1.7).

Reply at:
https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248/comments/5


On 2011-05-11T13:44:39+00:00 Petr wrote:

Thank you for the report, fixed time version will be pushed into Fedoras
soon.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248/comments/6


On 2011-05-11T16:16:56+00:00 Petr wrote:

Fixed in time-1.7-39.fc16 for F16.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248/comments/7


On 2011-05-11T16:27:09+00:00 Fedora wrote:

time-1.7-39.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/time-1.7-39.fc15

Reply at:
https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248/comments/8


On 2011-05-11T16:28:01+00:00 Fedora wrote:

time-1.7-38.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/time-1.7-38.fc14

Reply at:
https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248/comments/9


On 2011-05-11T16:28:16+00:00 Fedora wrote:

time-1.7-38.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/time-1.7-38.fc13

Reply at:
https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248/comments/10


On 2011-05-13T23:02:07+00:00 Fedora wrote:

Package time-1.7-38.fc14:
* should fix your issue,
* was pushed to the Fedora 14 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing time-1.7-38.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/time-1.7-38.fc14
then log in and leave karma (feedback).

Reply at:
https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248/comments/11


On 2011-05-19T04:58:41+00:00 Fedora wrote:

time-1.7-39.fc15 has been pushed to the Fedora 15 stable repository.  If
problems still persist, please make note of it in this bug report.

Reply at:

[Bug 742248] Re: time reports incorrect max rss

2012-06-27 Thread Bug Watch Updater
** Changed in: time (Debian)
   Status: New = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/742248

Title:
  time reports incorrect max rss

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 742248] Re: time reports incorrect max rss

2012-06-26 Thread Bug Watch Updater
** Changed in: time (Debian)
   Status: Unknown = New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/742248

Title:
  time reports incorrect max rss

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 742248] Re: time reports incorrect max rss

2012-06-25 Thread Steve Atwell
** Bug watch added: Debian Bug tracker #649402
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=649402

** Also affects: time (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=649402
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/742248

Title:
  time reports incorrect max rss

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 742248] Re: time reports incorrect max rss

2012-05-09 Thread Peter Bašista
** Changed in: time (Ubuntu)
   Status: In Progress = Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/742248

Title:
  time reports incorrect max rss

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 742248] Re: time reports incorrect max rss

2012-05-09 Thread Dejan Jovanović
What is the way ahead with this. I submitted the bug a year ago, and
it's lame that nobody except Peter cares about it. Is there something I
can do to speed it up?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/742248

Title:
  time reports incorrect max rss

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 742248] Re: time reports incorrect max rss

2011-12-06 Thread Peter Bašista
Hello?

Is anybody watching this?

I can not commit the attached patch myself, so ...
Can I ask someone who can, ... would you be that kind and do that, please?
Thank you!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/742248

Title:
  time reports incorrect max rss

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 742248] Re: time reports incorrect max rss

2011-11-11 Thread Peter Bašista
Attaching a patch to the oneiric version of package time.

** Patch added: time.patch
   
https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248/+attachment/2592869/+files/time.patch

** Changed in: time (Ubuntu)
   Status: Confirmed = In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/742248

Title:
  time reports incorrect max rss

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 742248] Re: time reports incorrect max rss

2011-11-11 Thread Ubuntu Foundation's Bug Bot
The attachment time.patch of this bug report has been identified as
being a patch.  The ubuntu-reviewers team has been subscribed to the bug
report so that they can review the patch.  In the event that this is in
fact not a patch you can resolve this situation by removing the tag
'patch' from the bug report and editing the attachment so that it is not
flagged as a patch.  Additionally, if you are member of the ubuntu-
sponsors please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by
Brian Murray.  Please contact him regarding any issues with the action
taken in this bug report.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/742248

Title:
  time reports incorrect max rss

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 742248] Re: time reports incorrect max rss

2011-05-09 Thread sml
There's a patch on the fedora bugzilla for this issue:
https://bugzilla.redhat.com/show_bug.cgi?id=702826

** Bug watch added: Red Hat Bugzilla #702826
   https://bugzilla.redhat.com/show_bug.cgi?id=702826

** Also affects: time (Fedora) via
   https://bugzilla.redhat.com/show_bug.cgi?id=702826
   Importance: Unknown
   Status: Unknown

** Changed in: time (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/742248

Title:
  time reports incorrect max rss

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 742248] Re: time reports incorrect max rss

2011-03-24 Thread Dejan Jovanović
-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/742248

Title:
  time reports incorrect max rss

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs