[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Get different memory value of Xen dom0 by "xm top" and "top"


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: <ben_ian@xxxxxxxxxxxx>
  • Date: Wed, 7 Jul 2010 18:24:15 +0800
  • Delivery-date: Wed, 07 Jul 2010 03:25:15 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Acsdvoy9kVmUpJyeRQmIKZwMY/0YZg==
  • Thread-topic: Get different memory value of Xen dom0 by "xm top" and "top"

Hello everyone,

My Xen Version is  xen-4.0.0

When I use “xm top”  to get the dom0 memory allocation, I got following result :   domain0 memory allocation: 1177508,

 

xentop - 12:24:17   Xen 4.0.0

5 domains: 1 running, 4 blocked, 0 paused, 0 crashed, 0 dying, 0 shutdown

Mem: 41879780k total, 41845196k used, 34584k free    CPUs: 8 @ 2533MHz

      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 SSID

    centOS --b---         27    1.6   10489824   25.0   10489856      25.0     1    0        0        0    1

     0        0        0          0          0    0

   centOS4 --b---          8    1.5    8392672   20.0    8392704      20.0     1    1        0        0    1

     0        0        0          0          0    0

  Domain-0 -----r        184   11.5    1177508    2.8   no limit       n/a     8    0        0        0    0

     0        0        0          0          0    0

   win2003 --b---          8    0.2   10489824   25.0   10489856      25.0     1    1        0        0    1

     0        0        0          0          0    0

     winxp --b---          7    0.2   10489824   25.0   10489856      25.0     1    1        0        0    1

     0        0        0          0          0    0

 

 

But I got a different result different result by using “top” to see the dom0 memory status:

 

top - 12:24:48 up 16 min,  5 users,  load average: 0.52, 0.38, 0.22

Tasks: 226 total,   3 running, 223 sleeping,   0 stopped,   0 zombie

Cpu(s):  0.5%us,  0.8%sy,  0.0%ni, 96.4%id,  2.2%wa,  0.0%hi,  0.0%si,  0.1%st

Mem:   1960880k total,  1922052k used,    38828k free,     6528k buffers

Swap: 51199992k total,        0k used, 51199992k free,   272924k cached

 

 

 

where “xm top” get    1177508k   but “top” get    1960880k   on the test, about 7xx MB different.

Meanwhile, I also got a similar difference(~7xx MB) on another machine running same test using xen-4.0.0,  with  3342336 by ”xm top”  and 4096944 by “top”  

 

But on the other hand, I got an equal result on Xen-3.X version

 

 

Anyone idea is welcome

Thanks!

 

Best regards,

Ben

 

 

 

 

 

 

 

 

 

 

TREND MICRO EMAIL NOTICE
The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.