Skip to content

Commit

Permalink
exclude "Disable Transparent Huge Pages" for containers
Browse files Browse the repository at this point in the history
Exclude performance tuning "Transparent Huge Pages"  for containers ('docker', 'lxc', 'podman') to prevent test failures in CI.
  • Loading branch information
vitabaks committed Mar 1, 2023
1 parent cc2bd54 commit 775c80c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion roles/transparent_huge_pages/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
[Install]
WantedBy=basic.target
notify: "restart disable-thp"
when: disable_thp is defined and disable_thp|bool
when:
- (disable_thp is defined and disable_thp|bool)
- ansible_virtualization_type not in ['docker', 'lxc', 'podman'] # exclude for containers to prevent test failures in CI.
tags: disable_thp, transparent_huge_pages

- name: Make sure handlers are flushed immediately
Expand Down

0 comments on commit 775c80c

Please sign in to comment.