[libvirt] [PATCH] add flag to enforce hugepage backing of guest RAM

Eric Blake eblake at redhat.com
Wed Feb 5 02:49:39 UTC 2014


On 02/04/2014 07:42 PM, Marcelo Tosatti wrote:

>>
>> <hugepages>
>>   <size strict='yes' unit='G'>1</size>
>> </hugepages>
>>
>> where strict could be no if we are giving a hint but don't care if the
>> hint cannot be honored (default yes if omitted), and where unit + value
> 
> Its awkward because you'd always want the largest hugepages size
> possible, to reduce TLB pressure. So its hard to find use for 
> 
> <size strict='no' unit='G'>1</size>
> 
> So what about <size strict unit='K/G/M'>x</size> ?

XML attributes don't work that way.  Either you have strict='yes' or you
omit it; but if there is no reason to ever not have strict, then it
would be sufficient to have:

<hugepages>
  <size unit='K/G/M'>x</size>
</hugepages>

where omitting the <size> subelement is a sign that it doesn't matter.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

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


More information about the libvir-list mailing list