Skip to content

Commit

Permalink
Fix bug when no hugepage is used (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiBUl-eu authored Jan 15, 2025
1 parent 6b08431 commit ef14aae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

- name: Disable/enable transparent hugepages for current session
shell: "echo {{ redis_transparent_hugepages_value }} > /sys/kernel/mm/transparent_hugepage/enabled"
when: "'[{{ redis_transparent_hugepages_value }}]' not in transparent_hugepages_result.stdout and redis_transparent_hugepages_value is defined"
when:
- redis_transparent_hugepages_value is defined
- "'[{{ redis_transparent_hugepages_value }}]' not in transparent_hugepages_result.stdout"

- name: Disable/enable transparent hugepages after reboot
blockinfile:
Expand Down

0 comments on commit ef14aae

Please sign in to comment.