summaryrefslogtreecommitdiffstats
path: root/nova/openstack
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2012-06-28 12:35:04 +0100
committerDaniel P. Berrange <berrange@redhat.com>2012-07-06 11:40:21 +0100
commit9698a45a308f54865811e67498e8f0500c8187f2 (patch)
tree06f37aa82c157fb04ec22cbef34c2c88a3bf74d4 /nova/openstack
parent4bbb9cfde27cd3c8268caf272d04a009b50c7a08 (diff)
downloadnova-9698a45a308f54865811e67498e8f0500c8187f2.tar.gz
nova-9698a45a308f54865811e67498e8f0500c8187f2.tar.xz
nova-9698a45a308f54865811e67498e8f0500c8187f2.zip
Set the default CPU mode to 'host-model' for Libvirt KVM/QEMU guests
Historically Nova has not set any CPU model for guests started with the libvirt driver. This means they are all using the per-hyervisor default settings for CPU model. With KVM/QEMU guests the model was traditionally a very conserative choice which exposed minimal features. This is significantly limits the performance of applications. Further the model has changed over time, so the exact default model is unpredictable. Switching Nova to use the host CPU model by default should improve the out of the box performance & give a known setup. This does not impact migration compatibility, since the migration code is already doing comparison checks against the source and destination host CPU model, regardless of the actual model used in the guest. In the future the migration code should be tweaked so that it actually compares the current guest CPU model, against the target host CPU model, which would potentially broaden the migration compatibility pool. With this patch there is a new libvirt_cpu_mode="none" which can be used to explicitly prevent any CPU model setting in the instance XML. The default value None, will now default to "none" for LXC/UML/etc, and "host-model" for QEMU/KVM Fixes: bug #1003373 Implements: blueprint libvirt-xml-cpu-model Change-Id: I5b96e4532b6a960e1608dd6e19ae9d194379fb6a Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions