[libvirt] [PATCH] docs: expand the man page text for virsh setmaxmem

Eric Blake eblake at redhat.com
Thu Jan 27 16:19:02 UTC 2011


On 01/27/2011 09:10 AM, Matthias Bolte wrote:
> 2011/1/27 Justin Clift <jclift at redhat.com>:
>> +Some hypervisors require a larger granularity than kilobytes, rounding down
>> +or rejecting requests that are not an even multiple of the desired amount.
>> +vSphere/ESX is one of these, requiring the parameter to be evenly divisible
>> +by 4MB.  For example with vSphere/ESX, 262144 (256MB) is valid as it's a
>> +multiple of 4MB; 263168 (257MB) is not valid as it's not a multiple of 4MB;
>> +266240 (260MB) is also valid, as it's a multiple of 4MB.

Do we need three examples, or would two be sufficient?

For example, vSphere/ESX has a 4MB granularity, so 263168 (257MB) would
be rejected while 266240 (260MB) is valid.

> Well, currently this is true. But I'm preparing a patch that makes
> libvirt round memory/storage request up instead of down when dividing
> it for a larger granularity. That way you'll get at least what you
> requested.

Let's go ahead and push it as-is, since it is accurate for the current
state of the tree,

> 
> When my patch gets accepted your patch needs some small tweaks :)

then update it as part of the improved semantics.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110127/e10f44f6/attachment-0001.sig>


More information about the libvir-list mailing list