resource module returns just zeros

  • Thread starter Adam Tauno Williams
  • Start date
A

Adam Tauno Williams

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,169
Messages
2,570,919
Members
47,460
Latest member
eibafima

Latest Threads

Top