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 3db7b20 commit 2278149
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/282-sles_hugepages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- "fixes transparent huge pages handling for SLES 15.x (#282)"
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 2278149

Please sign in to comment.