Summary: | sys-process/time - /usr/bin/time -f '%M' reports incorrect memory usage size with linux 2.6.34 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | alexsaa |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | alexsaa, jer |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
alexsaa
2010-08-11 13:37:47 UTC
http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.32 says: --- begin quote --- commit 1f10206cf8e945220f7220a809d8bfc15c21f9a5 Author: Jiri Pirko <jpirko@redhat.com> Date: Tue Sep 22 16:44:10 2009 -0700 getrusage: fill ru_maxrss value Make ->ru_maxrss value in struct rusage filled accordingly to rss hiwater mark. This struct is filled as a parameter to getrusage syscall. ->ru_maxrss value is set to KBs which is the way it is done in BSD systems. /usr/bin/time (gnu time) application converts ->ru_maxrss to KBs which seems to be incorrect behavior. Maintainer of this util was notified by me with the patch which corrects it and cc'ed. --- end quote --- So, resolution "UPSTREAM"? This problem still seems to exist. I am seeing the wrong output from sys-process/time-1.7-r1. There is a patch available at https://launchpadlibrarian.net/84899767/time.patch which I found in an Ubuntu bug report: https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248 Is it possible to incorporate this patch in the near future? Still outputting bad results after 4 years. Is there intention of fixing this? +*time-1.7-r2 (01 Feb 2015) + + 01 Feb 2015; Lars Wendler <polynomial-c@gentoo.org> +time-1.7-r2.ebuild, + +files/time-1.7-incorrect_memory_usage.patch: + Fixed incorrect memory usage (bug #332253). + |