WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] strange behaviour of top

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] strange behaviour of top
From: Lien Deboosere <lien.deboosere@xxxxxxxxxxxxxx>
Date: Fri, 03 Jul 2009 13:43:20 +0200
Delivery-date: Mon, 06 Jul 2009 07:52:46 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.22 (Windows/20090605)
Hello,

I have a strange problem inside my Xen DomU.
Inside my domU, I have a tool running (lookbusy) that generates a certain amount of cpu load.
Let's say, I generate 50% of CPU load on 1 core.

When I check the cpu load with top, I get something strange.
Here's the output from top:

top - 11:36:06 up 52 min,  1 user,  load average: 0.54, 0.52, 0.46
Tasks:  68 total,   2 running,  66 sleeping,   0 stopped,   0 zombie
Cpu0 : 0.0%us, 0.0%sy, 0.0%ni, 99.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.2%st Cpu1 : 34.0%us, 0.2%sy, 0.0%ni, 65.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem:    262468k total,    32896k used,   229572k free,        0k buffers
Swap:        0k total,        0k used,        0k free,    10092k cached

 PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
1384 root      20   0  1800  492  384 R   52  0.2  26:11.09 lookbusy


So, inside the detailed list, I see a CPU load of 52% (which is indeed more or less what I expect), but at the summary on the top of the output, I see the CPU1 is 65.8% idle or thus only 34.2% loaded.

If I look with xen top from Domain-0, I see more or less 50%.

I also tried some other tools:
1) with ps: I see the 52% load
2) with vmstat: I get the 34.2% load

Is there anyone who has an idea what could cause this difference?
Which tool should I believe?


Here is my configuration:
hypervisor: Xen 3.4.0
Domain 0:  2.6.26-2-xen-686 image from Lenny distribution
Domain U: minimal version of a 2.6.26-kernel for xen domU (lenny).
Hardware: 4 cores in total, in the example described above, I had 1 cpu core pinned for Domain-0 and 2 cpu cores pinned for the DomU.


Kind regards,
Lien



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>