[libvirt] [PATCH] Qemu: ask for memory preallocation with large pages

Daniel P. Berrange berrange at redhat.com
Thu Jan 7 17:31:59 UTC 2010

On Thu, Jan 07, 2010 at 02:53:20PM +0100, Daniel Veillard wrote:
> The -mem-prealloc flag should be used when using large pages
> This ensures qemu tries to allocate all required memory immediately,
> rather than when first used. The latter mode will crash qemu
> if hugepages aren't available when accessed, while the former
> should gracefully fallback to non-hugepages.
> * src/qemu/qemu_conf.c: add -mem-prealloc flag to qemu command line
>   when using large pages

ACK, definitely don't want VMs crashing when attempting to page in
huge pages which don't exist anymore

|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

More information about the libvir-list mailing list