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

Re: [Xen-devel] Revised balloon driver



On Thu, 2004-12-02 at 10:45, Keir Fraser wrote:
> To set memory target: echo <memsz> >/proc/xen/balloon
> (<memsz> is e.g., 300M, 2G, whatever).
Might be nice to make sure the user actually specifies M, G, etc.  I
tried echoing 60000 and forgot the K the first time.  It fails pretty
spectacularly when it tries to reduce the memory to 60000 bytes as I'm
sure you know. :)  On the other hand, if you want users to be able to
give just a number and assume bytes, how about checking the number they
provide against the amount of memory currently in use to see if it's
likely to cause trouble? Or are there other issues here?

Another thing I noticed...
xen1:/proc/xen# free
             total       used       free     shared    buffers     cached
Mem:         62612      32148      30464          0       1848       7908
-/+ buffers/cache:      22392      40220
Swap:       262136          0     262136
xen1:/proc/xen# echo 50M > balloon
xen1:/proc/xen# cat balloon
Current allocation:    51200 kB
Requested target:      51200 kB
Low-mem balloon:       14336 kB
High-mem balloon:          0 kB
Xen hard limit:          ??? kB
xen1:/proc/xen# free
             total       used       free     shared    buffers     cached
Mem:         62612      42356      20256          0       1848       7908
-/+ buffers/cache:      32600      30012
Swap:       262136          0     262136

Shouldn't free get adjusted as well?

Thanks,
Paul Larson



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
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®.