-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
incorrect per-process CPU usage reported [Windows] #474
Comments
From g.rodola on February 13, 2014 16:52:48
|
From [email protected] on February 14, 2014 06:32:35
|
From g.rodola on February 14, 2014 08:56:03
|
From [email protected] on February 18, 2014 08:44:51
|
From g.rodola on February 23, 2014 17:34:18
Status: FixedInHG |
From g.rodola on March 10, 2014 04:36:50
Status: Fixed |
How does one normalize the cpu percent consumed if it goes above 100% ? |
What do you mean? |
Meaning, should we divide the CPU % given with percpu=False by the number of cores OR should it be average of values given by percpu=True ? |
From psutil doc: https://pythonhosted.org/psutil/#psutil.Process.cpu_percent <<Note the returned value is explicitly not split evenly between all available CPUs (differently from psutil.cpu_percent()). This means that a busy loop process running on a system with 2 logical CPUs will be reported as having 100% CPU utilization instead of 50%. This was done in order to be consistent with top UNIX utility and also to make it easier to identify processes hogging CPU resources independently from the number of CPUs. It must be noted that taskmgr.exe on Windows does not behave like this (it would report 50% usage instead). To emulate Windows taskmgr.exe behavior you can do: p.cpu_percent() / psutil.cpu_count().>> |
Thanks much! |
From [email protected] on February 11, 2014 00:42:48
Original issue: http://code.google.com/p/psutil/issues/detail?id=474
The text was updated successfully, but these errors were encountered: