Skip to content

Commit

Permalink
fix transparent huge pages for suse
Browse files Browse the repository at this point in the history
  • Loading branch information
bartowl committed Oct 3, 2022
1 parent f902539 commit 48c4538
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
13 changes: 8 additions & 5 deletions roles/orahost/tasks/Suse-12.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---
- name: Disable Transparent Hugepages (runtime)
ansible.builtin.shell: if test -f /sys/kernel/mm/transparent_hugepage/enabled; then echo never > /sys/kernel/mm/transparent_hugepage/enabled; fi;
# noqa no-changed-when
tags: tphnuma
---
- name: Disable Transparent Hugepages (runtime)
ansible.builtin.shell: |
[ -f /sys/kernel/mm/transparent_hugepage/enabled ] && echo never > /sys/kernel/mm/transparent_hugepage/enabled && echo changed
[ -f /sys/kernel/mm/transparent_hugepage/defrag ] && echo never > /sys/kernel/mm/transparent_hugepage/defrag && echo changed
register: tphnuma_result
changed_when: "'changed' in tphnuma_result.stdout"
tags: tphnuma
8 changes: 8 additions & 0 deletions roles/orahost/tasks/Suse-15.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
- name: Disable Transparent Hugepages (runtime)
ansible.builtin.shell: |
[ -f /sys/kernel/mm/transparent_hugepage/enabled ] && echo never > /sys/kernel/mm/transparent_hugepage/enabled && echo changed
[ -f /sys/kernel/mm/transparent_hugepage/defrag ] && echo never > /sys/kernel/mm/transparent_hugepage/defrag && echo changed
register: tphnuma_result
changed_when: "'changed' in tphnuma_result.stdout"
tags: tphnuma

0 comments on commit 48c4538

Please sign in to comment.