Python resource module returns just zeros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I'm using a call to the resource module's getrusage method.  On openSUSE
this works, on CentOS [python26-2.6.5-3.el5] it 'works' but just returns
zeros for the memory utilization values.

resource.getrusage(resource.RUSAGE_SELF).ru_maxrss

openSUSE: returns 5512
CentOS:   returns 0

Anyone know what condition causes this?  Or is there a better /
more-reliable way to check memory utilization of the current process [from python]?
-- 
Adam Tauno Williams <awilliam@xxxxxxxxxxxxx> LPIC-1, Novell CLA
<http://www.whitemiceconsulting.com>
OpenGroupware, Cyrus IMAPd, Postfix, OpenLDAP, Samba

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux