[libvirt] [PATCH] Add huge page support to libvirt..

Mark McLoughlin markmc at redhat.com
Thu Jul 23 07:27:28 UTC 2009


Hey,

For anyone interested, there is more background here:

https://fedoraproject.org/wiki/Features/KVM_Huge_Page_Backed_Memory

On Wed, 2009-07-22 at 21:25 -0400, john cooper wrote:
> This patch allows passing of a "-mem-path <arg>"
> flag to qemu for support of huge page backed
> guests.  A guest may request this option via
> specifying:
> 
>     <hugepage>on</hugepage>

Other options include:

  - <hugepages/>

  - <memory hugepages="yes">XXXXX</memory>

> in its domain definition xml file.  The request
> for huge page backing will be attempted within
> libvirt if the host system has indicated a
> hugetlbfs mount point in qemu.conf, for example:
> 
>     hugepage_mount = "/hugetlbfs"

I'd suggest /dev/hugepages as the default - /hugetlbfs has an seriously
unstandard whiff about it

Apart from that, the patch looks good to me - it needs to be re-based
onto latest master, but the conflict is no big deal.

Cheers,
Mark.




More information about the libvir-list mailing list