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-devel

[Xen-devel] Xen Hypervisor's memory get roughly less 700MB(even 1400MB)

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Xen Hypervisor's memory get roughly less 700MB(even 1400MB) memory than actual grub setting when >4GB
From: benian <bestwish.happiness@xxxxxxxxx>
Date: Wed, 1 Dec 2010 16:00:38 +0800
Delivery-date: Wed, 01 Dec 2010 00:01:41 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=lRf28I2ad4tNEemYw2a2w9ntQ3/YhOE3sx0FzAqBtw0=; b=FdAMWLuj/b6HivcgvfOD6qPzN/QndLBSUHWCOMnPvnNScmbfyFcKxmgdERIHm40PpS U1ICZ+OFtmxleHB1HHvJldaodhl7/NY+KZ6HU/jIb1w5o60eV02Q+RmJn/ve1fqq7nGg Y7aDAtXxrgprW7hC1mQAk9WFOhktxQwYkIXa0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Sr0rVZuTTAc8MyfT7b+j154uPnnhTFj9txkHpTmDKmdpLYP/ywA1ScAMnTi/Z40xP/ 7QEaKm60YTtzE7GAV4pdoi1ZUOW10iUwX8f28DEMoENHF7SvbHj1So5egIlkYTxMbrjD IOup6JMzpcULjoNYaAZPqWHNwQt25R8oBek0w=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

Hi,

I am using Xen 4.0.1-6 and fedora2.6.32.23-170.xendom0.fc12.x86_64

 

When I try to set the a fix value for memory on grub

 

For example

 

title Xen_Fedora (2.6.32.23-170.xendom0.fc12.x86_64)

        root (hd0,0)

        kernel /xen-4.0.1.gz dom0_mem=5120M

 

I found that when I set dom0_mem<=3GB, the system memory report by “free” “xm list” “xl list” and “xentop” are both approximately conform with the setting in grub.

But when dom_mem>=4GB(roughly), the system memory is obviously different from the grub.

And at the same time, the value reported by “free” and “xm list” , is also obviously different from “xl list” and “xentop”

 

For example, dom0_mem=5120, the reports are:

“free”

                   total       used       free     shared    buffers     cached

Mem:       4489216    1911468    2577748          0       7976     104940

 

“xm list”

Name                 ID   Mem VCPUs      State   Time(s)

Domain-0              0  4384     8     r-----    136.8

 

 

 

“xl list”

Name                 ID   Mem VCPUs       State        Time(s)

Domain-0              0  3648     8        r--    139.8



“xentop”

Mem: 8378584k total, 3850452k used, 4528132k free    CPUs: 8 @ 2660MHz

NAME  STATE   CPU(sec) CPU(%)  MEM(k) MEM(%)  MAXMEM(k) MAXMEM(%) VCPUS

Domain-0 -----r        144    0.9    3735552   44.6   no limit       n/a     8    0       

 

 

Both of them are less 700MB (even 1400 MB) than the setting in grub.



Does anyone have idea about

1.      Why system memory short when dom0_mem >=4GB(roughly)?

2.      why the reported value from “free” and ”xm list “ is different from “xl list” and ”xentop”

 

 

any idea is appreciated .

Thanks very much!

 

Ben

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