kvm: Introduce support for -mem-path
authorMiguel Di Ciurcio Filho <miguel.filho@gmail.com>
Tue, 5 Oct 2010 13:35:02 +0000 (10:35 -0300)
committerGuido Trotter <ultrotter@google.com>
Tue, 5 Oct 2010 13:45:10 +0000 (14:45 +0100)
commit4f958b0b1d7e8a6e5636afc0565f765e93eb43b0
tree87768c680a296fca08fffb575095e3c0ee7098da
parent87b2cd45841a24b42d66dbb1aaa1e7e6133e0623
kvm: Introduce support for -mem-path

Using hugepages, KVM instances can get a good performance boost. To
activate that, we need to pass the -mem-path argument to KVM along with
the mount point of the hugetlbfs file system on the node.

For the sake of memory availability computation, we use the -mem-prealloc
argument when enabling hugepages, so KVM will reserve all hugepages it
needs when it starts. This avoids allocating an instance on a node that
will not have enough pages in case other instance needs more than what
is available after it boots.

Signed-off-by: Miguel Di Ciurcio Filho <miguel.filho@gmail.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/constants.py
lib/hypervisor/hv_kvm.py
man/gnt-instance.sgml