Explicitly disable KSM by default on Ubuntu.

By default KSM is enabled on Ubuntu, disabling it specificaly.

Change-Id: I689a851c5268db70e04564386952945fe5612cb0
This commit is contained in:
Marc Gariepy
2017-10-26 10:06:45 -04:00
committed by Marc Gariépy (mgariepy)
parent e4b30a1aaf
commit 55be574630
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
upgrade:
- KSM configuration is changed to disabled by default on Ubuntu.
if you overcommit the RAM on your hypervisor it's a good
idea to set ``nova_compute_ksm_enabled`` to True.

View File

@@ -113,6 +113,20 @@
- nova-kvm
- nova-libvirt
- name: Set qemu-kvm KSM config (Ubuntu)
lineinfile:
dest: "/etc/default/qemu-kvm"
line: "KSM_ENABLED={{ nova_compute_ksm_enabled | ternary('1','0') }}"
regexp: "^KSM_ENABLED=*"
backup: yes
when:
- ansible_pkg_mgr == 'apt'
notify: Restart libvirt-bin
tags:
- nova-config
- nova-kvm
- nova-libvirt
- include: nova_disable_smt.yml
when:
- ansible_architecture == 'ppc64le'