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

Re: [Xen-devel] Memory oversubscription

To: Rik van Riel <riel@xxxxxxxxxx>
Subject: Re: [Xen-devel] Memory oversubscription
From: Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>
Date: Thu, 23 Sep 2004 22:50:40 +0100
Cc: Todd Jones <stjones@xxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxxx, Ian.Pratt@xxxxxxxxxxxx
Delivery-date: Thu, 23 Sep 2004 22:51:39 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: Your message of "Thu, 23 Sep 2004 17:06:10 EDT." <Pine.LNX.4.44.0409231705440.5799-100000@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
> On Tue, 14 Sep 2004, Todd Jones wrote:
> 
> > 2. Inflate a balloon in that domain and return say 40MB back to Xen
> 
> OK, how does this work ?
> 
> I've searched through the documentation and it doesn't
> seem to be an xm option either ... ;)

For the moment, you can only control the amount of memory that a
domain is using from within the domain itself using
/proc/xen/memory_target

Whatever size (in bytes) you enter in this field, the domain will
try to adjust itself to this size. If it's currently too big, it
will try to grab free pages and hand them back to Xen. If it
needs to grow, it will request new pages from Xen.

We need to add a new xend control message that allow dom0 to
directly control what the memory target for another domain should
be. We then need to add a new xm command to enable it to be
controlled.

The maximum size the domain can grow to is bounded by the minimum
of that set by "xm maxmem" and the size of the mem_map array that
the domain has. There's a new "maxmem=" linux kernel command line
option to enable a domain to be started with a bigger mem_map
array than is required for its initial memory allocation. Once
hot-plug memory is standard we'll be able to do away with the
maxmem option.

Hmm. Thinking about it, I'm not sure whether either memory_target
or maxmem have been ported from 2.4 to 2.6.  Any volunteers?
[This would also be a good opportunity to do a slight cleanup to
the balloon driver and thread the 'released' pages in a linked
list through the mem_map array rather than scanning the P2M table.]

Ian







-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

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