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] Calculate free memory

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Calculate free memory
From: Muriel <mucawhite@xxxxxxxxx>
Date: Wed, 10 Aug 2011 16:33:40 +0200
Delivery-date: Wed, 10 Aug 2011 07:34:28 -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=Jc8qB47bMxn6YCkdn/ETvsB8BFSJuL/kR5Z76f0Ofm4=; b=mCidgqc4JyhUJ7PMj/zVEhNZP5xvW3u8cBYXPBSCgn64JenHI/3TuyTD1IFy8/o3BY NqSxxlO6A/DuFhzBSKpM4WnGv4hIGKH+gohZq56w+ryX3hnfKoRpc8T/SCTl6e4n7Z6s aoaQ9IP0pmZ+hGJMhx5W4Kvm6nZfoS99DVfjs=
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,
can be a stupid question, but there is a method to calculate the free
memory in a system that counts also the memory reserved for the Dom0?
I tried using xm info and free comand but there is something wrong.
A simple example, host with 4 GB, kernel 2.6.32.39, xen 4.0.2,
scientific linux 6:

--------------------------------------------
xm info
total_memory           : 4094
free_memory            : 1046

free -m
total       used       free     shared    buffers     cached
3456       1090       2365          0          8        127

So from "xm info" i have 3048 MB reserved, but 3456 are for dom0 (
difference -408)
------------------------------------------

Now a system with 16GB, xen 4.1, centos 5:
xm info:
total_memory           : 16381
free_memory            : 13633

free -m
total       used       free     shared    buffers     cached
3072       2196        875          0        160        338

For xm info i have 2748 MB reserved, but 3072 are for dom0 (diff -324)
If I set the dom0 memory but the difference between xm info data and
free remain constant.
------------------------------------------

I have thought of memory reserved for the hypervisor, but then I tried
with this configuration:
host with 8GB, kernel 2.6.32.39, xen 4.0.2, scientific linux 6:
xm info
total_memory           : 8190
free_memory            : 5006

free -m
total       used       free     shared    buffers     cached
3072       2454        617          0        194        338

For xm info i have 3190 MB reserved, but 3072 are for dom0 (diff +112).
------------------------------------------

Someone can explain what happens?
There is a simple and reliable way to get as much ram I have available for domU?

Thanks,
Muriel

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

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