Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Strange values returned from xentop

598698Jun 13 2009 — edited Jun 14 2009
I'm going to take the output of xentop to expose its data via snmp akin to this method here. However my testing so far has resulted in some strange results. My machine is idling with no virtual machines running. Running xentop in interactive mode (e.g. just type xentop from the command line) I typically get the following output.

xentop - 10:08:55 Xen 3.1.4
2 domains: 2 running, 0 blocked, 0 paused, 0 crashed, 0 dying, 0 shutdown
Mem: 4184252k total, 2059912k used, 2124340k free CPUs: 4 @ 3733MHz
NAME STATE CPU(sec) CPU(%) MEM(k) MEM(%) MAXMEM(k) MAXMEM(%) VCPUS NETS NETTX(k) NETRX(k) VBDS VBD_OO VBD_RD VBD
_WR SSID
88_contentserver -----r 256 82.0 1449852 34.7 1458176 34.8 1 1 0 0 2 0 0
0 0
Domain-0 -----r 4283 *1.3* 518144 12.4 no limit n/a 4 8 270644 17504 0 0 0
0 0

Note that the dom0 CPU time isn't really doing much, it is sat around 1-2% usage.

However if I run the command;
xentop -b -i 2 -d.1

First of all I have to run two itterations because xentop always returns 0.0 for CPU usage in dom0 in the first itteration. Oddly the second itteration has a VERY high value for CPU usage even when the machine is at idle. For example...

[root@ovm bin]# xentop -b -i 2 -d.1
NAME STATE CPU(sec) CPU(%) MEM(k) MEM(%) MAXMEM(k) MAXMEM(%) VCPUS NETS NETTX(k) NETRX(k) VBDS VBD_OO VBD_RD VBD_WR SSID
88_contentserver b- 122 0.0 1449852 34.7 1458176 34.8 1 1 0 0 2 0 0 0 0
Domain-0 -----r 4196 0.0 518144 12.4 no limit n/a 4 8 263729 17152 0 0 0 0 0
NAME STATE CPU(sec) CPU(%) MEM(k) MEM(%) MAXMEM(k) MAXMEM(%) VCPUS NETS NETTX(k) NETRX(k) VBDS VBD_OO VBD_RD VBD_WR SSID
88_contentserver b- 122 3.1 1449852 34.7 1458176 34.8 1 1 0 0 2 0 0 0 0
Domain-0 -----r 4196 *121.4* 518144 12.4 no limit n/a 4 8 263729 17152 0 0 0 0 0

Try it yourself. Have two consoles open, one with xentop running interactively and the other run from xentop -b -i 2 -d.1. Notice how the CPU numbers just don't match up. Any idea whats going on?

Edited by: Simon Thorpe on Jun 13, 2009 2:14 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 12 2009
Added on Jun 13 2009
3 comments
3,420 views