kiranvizru / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

Provide virtualization-related CPU stats on Linux #361

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
As suggested here:
https://groups.google.com/forum/?fromgroups#!topic/psutil/beLld4Mvzjs
Currently on Linux psutil.cpu_times() is omitting 3 CPU stats available on 
modern Linux kernels:

- steal (Linux  >= 2.6.11): stolen time, which is the time spent in other 
operating systems when running in a virtualized environment 

- guest (Linux >= 2.6.24): the time spent running a virtual CPU for guest 
operating systems under the control of the Linux kernel.

- guest_nice (Linux >= 3.2.0): same as above but refers to 'niced' 
(prioritized) virtual CPU time

Other than the fact that they may be useful to some, it must also be considered 
that psutil.cpu_percent() is currently not taking them into account therefore 
the CPU percentage we get is not accurate.

Original issue reported on code.google.com by g.rodola on 25 Mar 2013 at 12:54

GoogleCodeExporter commented 9 years ago
Fixed in revision 563562aba003.

Original comment by g.rodola on 25 Mar 2013 at 1:39

GoogleCodeExporter commented 9 years ago

Original comment by g.rodola on 8 Apr 2013 at 1:21

GoogleCodeExporter commented 9 years ago

Original comment by g.rodola on 11 Apr 2013 at 9:17

GoogleCodeExporter commented 9 years ago

Original comment by g.rodola on 12 Apr 2013 at 6:21