File tree Expand file tree Collapse file tree 4 files changed +27
-3
lines changed
ansible/roles/tuned/tasks
environments/.stackhpc/inventory Expand file tree Collapse file tree 4 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 12
12
register : _tuned_profile_current
13
13
changed_when : false
14
14
15
- - name : Set tuned-adm profile
15
+ - name : Set TuneD profile
16
16
ansible.builtin.command :
17
17
cmd : " tuned-adm profile {{ tuned_profile }}"
18
- when :
18
+ when :
19
+ - tuned_started | bool
20
+ - tuned_profile not in _tuned_profile_current.stdout
21
+
22
+ - name : Verify TuneD profile
23
+ ansible.builtin.command :
24
+ cmd : tuned-adm verify
25
+ changed_when : false
26
+ when :
19
27
- tuned_started | bool
20
28
- tuned_profile not in _tuned_profile_current.stdout
Original file line number Diff line number Diff line change 2
2
- name : Install tuneD
3
3
ansible.builtin.dnf :
4
4
name : tuned
5
- state : present
5
+ state : present
6
+
7
+ - name : Fix TuneD hpc-compute profile for hugepages
8
+ # See https://github.com/redhat-performance/tuned/issues/752
9
+ # This is done on install, not configure, so that it is available even
10
+ # for compute-init nodes
11
+ community.general.ini_file :
12
+ path : /usr/lib/tuned/hpc-compute/tuned.conf
13
+ section : sysctl
14
+ option : vm.min_free_kbytes
15
+ value : ' >135168'
16
+ no_extra_spaces : true
Original file line number Diff line number Diff line change @@ -29,7 +29,10 @@ cluster
29
29
30
30
[tuned:children]
31
31
# Install tuned into fat image
32
+ # NB: builder has tuned_enabled and tuned_started false so does not configure it
32
33
builder
34
+ # Also test tuned during site playbook
35
+ cluster
33
36
34
37
[squid:children]
35
38
# Install squid into fat image
Original file line number Diff line number Diff line change
1
+ # Set profile which is not default (on VMs) for testing
2
+ tuned_profile : hpc-compute
You can’t perform that action at this time.
0 commit comments