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] /proc/xen/memory_target patch

To: David Becker <becker@xxxxxxxxxxx>
Subject: Re: [Xen-devel] /proc/xen/memory_target patch
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Fri, 16 Jul 2004 21:05:32 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 16 Jul 2004 21:08:05 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: Your message of "Fri, 16 Jul 2004 15:33:40 EDT." <20040716193340.GZ11293@xxxxxxxxxxx>
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
Great, thanks! This is a much more useful interface. :-)
I've checked it in.

 -- Keir

> 
> This patch to the balloon driver eliminates the need for a user-space
> program to slosh memory between domains and xen.   This uses a proc
> file at /proc/xen/memory_target.  When read it reports memory the domain
> owns in bytes.   Writing a new value to the memory_target proc file
> will cause the domain to exchange memory with xen to reach the target.
> A xenolinux domain cannot grow bigger than it was when created.
> Must be done by root.
> 
> Target requests are made in bytes, or with a k m or g suffix.  The
> request is parsed with the same function that parses the mem= boottime
> kernel param.
> 
> Memory sizes in bytes are internally truncated to pages.  Minimum change
> is PAGE_SIZE (4k).
> 
>       dragonfly:~# cat /proc/xen/memory_target 
>       134217728l
>       dragonfly:~# echo 50m > /proc/xen/memory_target 
>       Relinquish 78MB to xen. Domain now has 50MB
>       dragonfly:~# echo 100m > /proc/xen/memory_target 
>       Reclaim 50MB from xen. Domain now has 100MB
>       dragonfly:~# cat /proc/xen/memory_target 
>       104857600l


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

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