Hello,

So – you have a virtual machine with two vCPUs pinned, but you want to “see” the CPU activity, etc.  You have tried Task Manager/Device Manager (Windows) and can only see:

Device Manager CPU View

or

Task Manager

This only tells you the virtual machine’s perspective (domU) of its vCPU utilization.  Dom0 (the control domain) does not necessarily see the domU CPU activity: per core, per vCPU, etc, etc.

If you want to really track down the vCPU/CPU usage of your bare-metal XenServer host, drop to the command line and run:

 

xentop

 

The initial output will look somewhat readable (however, instructions are at the bottom), such as this:

 

xentop - 13:31:42 Xen 4.1.5
5 domains: 2 running, 3 blocked, 0 paused, 0 crashed, 0 dying, 0 shutdown
Mem: 16660928k total, 10834644k used, 5826284k free CPUs: 4 @ 3392MHz
 NAME STATE CPU(sec) CPU(%) MEM(k) MEM(%) MAXMEM(k) MAXMEM(%) VCPUS
 NETS NETTX(k) NETRX(k) VBDS VBD_OO VBD_RD VBD_WR VBD_RSECT VBD_WSECT SS
ID
8Dot1Sixty -----r42835 78.5 4194276 25.2 419532825.2 2
1 2645976 3791519 20 691027 1491547 24996193 37174940
 0
 Domain-0 -----r 304484 19.9 2083328 12.5 no limitn/a 4
000 000000
 0
 litterbox --b---21296 0.6 2097120 12.6 209817612.6 1
1 1522394 587830 20 98841 1441951 2799246 30665914
 0
perfvm-2.0 --b---1951 0.2 1048576 6.3 10588166.4 1
2 63288 4619 10 21075 205883 537382 3137190
 0
TAAS-SDK-1 --b---10454 1.1 1048544 6.3 10618886.4 2
1 2976686 220091 20 249250 268339 6894542 10799946
 0

<strong>D</strong>elay <strong>N</strong>etworks v<strong>B</strong>ds <strong>T</strong>mem <strong>V</strong>CPUs <strong>R</strong>epeat headerort order <strong>Q</strong>uit


 

So – we see a lot if items.  By the way – Q = quit.

Let’s change this up – press the V key and R key as so it sorts out by vCPU and repeats the header.  The output will show:

xentop – 13:50:03   Xen 4.1.5
5 domains: 2 running, 2 blocked, 0 paused, 0 crashed, 0 dying, 0 shutdown
Mem: 16660928k total, 10834644k used, 5826284k free    CPUs: 4 @ 3392MHz

NAME  STATE   CPU(sec) CPU(%)     MEM(k) MEM(%)  MAXMEM(k) MAXMEM(%) VCPUS
NETS NETTX(k) NETRX(k) VBDS   VBD_OO   VBD_RD   VBD_WR  VBD_RSECT  VBD_WSECT SS
ID
8Dot1Sixty —–r43469   49.7    4194276   25.2    419532825.2     2
1  2800313  3842283    20   693342  1500607   25027381   37401413
0
VCPUs(sec):   0:22395s  1:21073s

So, from this change in output, I  have put the items to focus on in bold text with an explanation:

8Dot1Sixty is my VM and between both vCPUs it is using 30-50% of processing power (I make this machine work HARD!)

I have 2 vCPUs assigned to this VM

I have 1 network interface

And seconds – CPU0 and CPU1 are how long I’ve been using the processors/vCPUs.

If all else fails, check out XenCenter under the General Tab: it will provide a synopsis of resources used.

So, this is from my virtual desktop to you!

–jkbs

@xenfomation