Merge pull request #181 from leseb/transparent-hugepages

Ability to disable transparent hugepage
pull/182/head
Leseb 2015-01-13 11:13:08 +01:00
commit 8c1f885a15
2 changed files with 6 additions and 0 deletions

View File

@ -119,6 +119,7 @@ radosgw: false # referenced in monitor role too.
# OS TUNING # OS TUNING
########### ###########
disable_transparent_hugepage: true
os_tuning_params: os_tuning_params:
- { name: kernel.pid_max, value: 4194303 } - { name: kernel.pid_max, value: 4194303 }
- { name: fs.file-max, value: 26234859 } - { name: fs.file-max, value: 26234859 }

View File

@ -3,6 +3,11 @@
command: updatedb -e /var/lib/ceph command: updatedb -e /var/lib/ceph
ignore_errors: true ignore_errors: true
- name: Disable transparent hugepage
command: "echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabled"
ignore_errors: true
when: disable_transparent_hugepage
- name: Apply OS tuning - name: Apply OS tuning
sysctl: > sysctl: >
name={{ item.name }} name={{ item.name }}