[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] /proc/xen/memory_target patch



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.