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

Daniel P. Berrange berrange at redhat.com
Tue Feb 4 17:26:31 UTC 2014


On Tue, Feb 04, 2014 at 12:22:00PM -0500, Marcelo Tosatti wrote:
> 
> You're OK with StrictHugePageSize=N element ?

I'm not entirely sure what that would do ? Is that for when people want
to have a specific size of hugepages ? If so, then I guess we might
actually need some kind of granularity here.

eg if the user has a 1200 MB guest, and they want to use 1 GB huge
pages, then there's a choice between 2 * 1GB huge pages, or 1 x 1GB
and n * 4M huge pages, or an error requiring that their guest RAM is
a multiple of requested huge page size.

So perhaps we do need some "policy" attribute on the <hugepages/>
element to indicate desired behaviour here.

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list