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

Re: [Xen-users] Calculate free memory

To: Muriel <mucawhite@xxxxxxxxx>
Subject: Re: [Xen-users] Calculate free memory
From: ditwal001 <ditwal001@xxxxxxxxx>
Date: Wed, 10 Aug 2011 18:26:38 +0200
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 10 Aug 2011 09:28:02 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to; bh=EGtBdqR62KczVuNnrZic7+xGbPW6KSQ/+QcjYl5P/YY=; b=K3FKAuD+r20tbL44qorv/iYS9E7V9wG8wjB37hgtBqIivEL3RYtAnRwpzyvCtQ7m5c aot4Xyn1Sh21Y1HyiMIh7/+/aazdp40I3JH01qpTIXEaCGqOgocjq7fhvoAM8Gv4ckuK EC7gzxJXMVWk8pXw+tMs9kxv03yInMh7nkKRw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAHfipj3WPAGdxKa0Vjb8owVZuQtRhBaVV+Hn8WX4SX3tnvSo-w@xxxxxxxxxxxxxx>
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>
References: <CAHfipj3WPAGdxKa0Vjb8owVZuQtRhBaVV+Hn8WX4SX3tnvSo-w@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
hi,

xm top

thanks walter

On 10 Aug 2011, at 16:33, Muriel <mucawhite@xxxxxxxxx> wrote:

> 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

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

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