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

2010-01-08 Thread Daniel Veillard
On Thu, Jan 07, 2010 at 05:31:59PM +, Daniel P. Berrange wrote: > 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

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

2010-01-07 Thread Daniel P. Berrange
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

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

2010-01-07 Thread Daniel Veillard
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.