[libvirt] cpu values

Tavares, John John_Tavares at bmc.com
Thu Mar 11 22:46:45 UTC 2010


I am trying to compare the results that I am getting on a RHEL 5.3 server using xm list (using libvirt.so.0.3.3) against both my Dom0 and my Linux DomU on the same server to see if the cpu values match to what the kernel is reporting in /proc/stat.  Here is an example of what I am seeing on both:

>From Dom0:

$ sudo /usr/sbin/xm list;cat /proc/stat | grep cpu
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0      746     1 r-----  73722.3
rhel5_01                                   1      255     1 -b----  18558.4

cpu  412542 1477862 522101 1111350509 347838 0 262 487234
cpu0 412542 1477862 522101 1111350509 347838 0 262 487234

>From DomU (rhelt_01):

$ cat /proc/stat | grep cpu
cpu  138184 148634 246128 924538039 467802 133 178 339822
cpu0 138184 148634 246128 924538039 467802 133 178 339822

The results of the two do not appear close.  Should the cpu times match, is this a bug, or does Time mean something different than I think it does??

Thanks.

John




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100311/c797977d/attachment-0001.htm>


More information about the libvir-list mailing list