Ansible testbed setup for Taishan testbed
[csit.git] / resources / tools / testbed-setup / ansible / roles / tg_sut / tasks / x86_64.yaml
1 ---
2 # file: roles/tg_sut/tasks/x86_64.yaml
3
4 - name: Configure x86_64 kernel parameters
5   lineinfile:
6     path: '/etc/default/grub'
7     state: 'present'
8     regexp: '^GRUB_CMDLINE_LINUX='
9     line: 'GRUB_CMDLINE_LINUX="isolcpus={{ isolcpus }} nohz_full={{ isolcpus }} rcu_nocbs={{ isolcpus }} numa_balancing=disable intel_pstate=disable intel_iommu=on iommu=pt nmi_watchdog=0 audit=0 nosoftlockup processor.max_cstate=1 intel_idle.max_cstate=1 hpet=disable tsc=reliable mce=off"'
10   notify: ['Update GRUB']
11   tags: set-grub
12
13 - name: Load msr by default
14   lineinfile:
15     path: '/etc/modules'
16     state: 'present'
17     line: 'msr'
18   tags: disable-turbo-boost