[Libvir] RFC PATCH - Initial NodeGetCellsFreeMemory patch

Richard W.M. Jones rjones at redhat.com
Fri Sep 21 13:26:56 UTC 2007


Daniel Veillard wrote:
>> + * If maxCells == -1, the free memory will be summed across all cells and
>> + * returned in freeMems[0].
> 
>   Hum, that -1 handling is a bit surprizing, but apparently that's what 
> the Xen hypercall does. It's a bit convoluted as an API to get the full
> free memory on a Node, maybe this should be separated as a different API
> as people looking for this information may not think about looking at 
> NUMA special entry points. We don't have currently a simple API to
> get the free memory on a Node, maybe that should be added.

Having the separate semantics is necessary because it seems like this 
can be done in a single hypercall if the caller only needs to know the 
total free memory.

Rich.

-- 
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20070921/62aba8d4/attachment-0001.bin>


More information about the libvir-list mailing list