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:
committed by
Marc Gariépy (mgariepy)
parent
e4b30a1aaf
commit
55be574630
5
releasenotes/notes/disable-ksm-670aeb175826b7ca.yaml
Normal file
5
releasenotes/notes/disable-ksm-670aeb175826b7ca.yaml
Normal 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.
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user