You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Monitor for resources usage using following code:
#have it in __init__ of my class
self.timer = LoopingCall(self.do_monitor)
def cb(success):
print 'callback'
def err(failure):
print 'errback'
print failure
d = self.timer.start(INTERVAL)
d.addCallback(cb)
d.addErrback(err)
#do_monitor just calls
cpu_usage = round(proc.get_cpu_percent(),1)
#and then i do write it into database
2. in separate console, run on the same machine where you run the code tar
-czvf blabla.tar.gz /some/folder/with/alot/of/files
3. check the results, you can monitor gzip or just system usage, gzip giving
anomal values for sure - like +13380 % of system usage
I'm having INTERVAL set to 5
What is the expected output?
What do you see instead?
100 as max value, values like 13380 or 913 instead sometimes
What version of psutil are you using? What Python version?
psutil, ubuntu package, providdes 0.1.2-2, python 2.6.5
On what operating system? Is it 32bit or 64bit version?
Ubuntu 10.4 64bit
This should have been fixed in commits tracked in issue 123 , available in
current trunk (upcoming 0.2.0 version).
I also recommend using a more recent psutil version, which is 0.1.3 or current
trunk wich should be stable enough.
0.1.2 is too old.
From woos...@gmail.com on November 08, 2010 13:38:06
Original issue: http://code.google.com/p/psutil/issues/detail?id=131
The text was updated successfully, but these errors were encountered: