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] Why the data got from "top" and "xentop" are different?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Why the data got from "top" and "xentop" are different?
From: 徐飞 <kudofaye@xxxxxxxxx>
Date: Tue, 30 Aug 2011 21:14:20 +0800
Delivery-date: Tue, 30 Aug 2011 06:17:08 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=Q8wZ84dcM8txdsumkBa9Hzcs0DtZ+dzbC0d6KWUYSEc=; b=aHAS+lQw3EQyCflnBP1WPFxX/p7dgGiehgCBPuPn2QiXgpCHd546UaVid7TIVEt2c0 EjZ3i+a23tIFa/CItGLq45OHrgl6WlFzEAnRM+hujoxnyYmkaO+OyzhPvsHa7gqrtybV pvyF1icGIbw8pBU9n92rFxhCinZjUGid6MT3I=
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
Hi All,
 
I'm a beginner in Xen. Recently I've configured one VM (vm03) hosted in my physical machine. I ran the "netperf" workload in the vm01, and used the "top" command in the vm03 to test the behavior of the running workload. Meanwhile, I also used the "xentop" command in domain0 to see the resource consumption in vm03. Interestingly, I found that the CPU usage data is extremely different with each other. The CPU usage data in "xentop" was 13.6%, while in "top" the data was only 1.0%.
 
So why does this happen?
 
Xentop detail data:
2 domains: 2 running, 0 blocked, 0 paused, 0 crashed, 0 dying, 0 shutdown
Mem: 25099756k total, 20868028k used, 4231728k free    CPUs: 16 @ 2400MHz
      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
  Domain-0 -----r        822   38.9   16314368   65.0   no limit       n/a    16    0        0        0    0        0        0        0    0
      vm03 -----r         77   13.6    4193024   16.7    4194304      16.7     4    1 12177577    73198    1        0    68043    37282    0
 
Top detail data:
Tasks: 123 total,   2 running, 121 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0%us,  0.1%sy,  0.0%ni, 99.8%id,  0.0%wa,  0.0%hi,  0.1%si,  0.1%st
Mem:   4193204k total,  2073200k used,  2120004k free,   117796k buffers
Swap:        0k total,        0k used,        0k free,  1652528k cached
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND           
 3175 root      15   0  9108  980  624 R  1.0  0.0   0:00.04 netperf           
    1 root      15   0 10352  684  576 S  0.0  0.0   0:00.01 init              
    2 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 migration/0       
    3 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0       
    4 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 watchdog/0        
    5 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 events/0          
    6 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 khelper           
    7 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kthread           
    9 root      17  -5     0    0    0 S  0.0  0.0   0:00.00 xenwatch          
   10 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 xenbus            
   14 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/1       
   15 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/1       
   16 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/1        
   17 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 events/1          
   18 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/2       
   19 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/2       
   20 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/2 
 
My Xen version is 3.3.1.

Best Regards,
Faye

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>