Where is my memory usage? (getrusage)

Ignacio Vazquez-Abrams ignacio at openservices.net
Thu Sep 20 22:16:10 EDT 2001


On 20 Sep 2001, Soren Ragsdale wrote:

> ==============================================================
> linux-i386
> Self (0.01, 0.01, 0, 0, 0, 0, 115, 293, 0, 0, 0, 0, 0, 0, 0, 0)
> Child (1.88, 0.55, 0, 0, 0, 0, 34597, 507, 0, 0, 0, 0, 0, 0, 0, 0)
> ==============================================================
> irix646
> Self (0.04718, 0.047292, 320, 0, 0, 0, 182, 6, 0, 17, 0, 0, 0, 0, 61,
> 103)
> Child (3.722367, 0.582003, 102784, 0, 0, 0, 208, 0, 0, 1, 0, 0, 0, 0,
> 43, 0)
> ==============================================================
>
> Why doesn't getrusage report the memory usage of my child process?  It
> looks like this bug only appears under linux in both 2.2 and 2.4
> kernels.  To refresh your memory:

Looking through the Linux source code, it appears as though getrusage() only
provides values for elements 0, 1, 6, 7, and 8.

-- 
Ignacio Vazquez-Abrams  <ignacio at openservices.net>





More information about the Python-list mailing list