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] Use of memory on Dom0 ?

To: "Olivier B." <xen.list@xxxxxxxxx>
Subject: Re: [Xen-users] Use of memory on Dom0 ?
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Thu, 11 Feb 2010 23:50:51 +0700
Cc: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 11 Feb 2010 08:51:26 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4B7431B9.209@xxxxxxxxx>
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: <4B741C72.20106@xxxxxxxxx> <7207d96f1002110747s13eda40enaf6fbc5c7b8627d9@xxxxxxxxxxxxxx> <4B7431B9.209@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, Feb 11, 2010 at 11:35 PM, Olivier B. <xen.list@xxxxxxxxx> wrote:
> You're right, it's a solution yes (all my domU are PV).
> But how does it works if a software use "1800" of that memory, and I reduce
> it to 1000 ?

It'd behave the same as if you run another software that uses 800M of
memory. On most cases it'd just use swap. On some cases (like when the
app specifically lock the memory it uses, making it unswappable) it
might make domU crash or experience OOM.

>
> Or maybe is there a way to reserve this memory for disk caching only ?

No direct way that I know of. You need to know how much memory your
application needs/uses.
Linux uses available memory for cache. If your application only use
1000M, then the rest (800M) will be used for caching. That 800M can be
ballooned-down safely.

If your application always need 1800M, then you should assign more
memory from the start.

-- 
Fajar

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

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