Run "guest CPUs" under Linux? I need your help
I'm the Debian maintainer for procps, which is the package that gives
you things like ps,killall and top. The latest version of procps now
handles all 7 cpu numbers, so all is well?
Actually no, since kernel 2.6.24 there is a 9th CPU field! It's called
a guest field and is the amount of time the CPU spends running a virtual
CPU. My problem is, its not defined too well. I get 0 all the time as
I run a standard Linux installation.
What am I looking for?
* Someone who knows that this field means, or
* Someone who can spend some time with me checking some things and
has something in that field.
Look for the 9th number in your cpu lines in /proc/stat
$ grep cpu /proc/stat
cpu 10056425 163340 3340784 167972553 1183037 103876 31053 0 0
cpu0 10056425 163340 3340784 167972553 1183037 103876 31053 0 0
That second 0 right at the end is my "guest cpu" time. If you don't
have 0 and got some time, can you reply back? I'll probably just
need some greps of a few lines in /proc Ideally you have a rather large
number there, or at least something that is in the same order as the
This work will then mean the tools will get updated so they properly
reflect that time. I suppose if you have 0 there then you don't have
to care, because its not going to change your results.
The biggest question is, is that number part of the 100% of the CPU time
or is it a susbset of say, system time.
Craig Small GnuPG:1C1B D893 1418 2AF4 45EE 95CB C76C E5AC 12CA DFA5
http://www.enc.com.au/ csmall at : enc.com.au
http://www.debian.org/ Debian GNU/Linux, software should be Free