aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/x86_64.yaml
blob: 7b66300bc426d97a5333e2e90e59d4e5b2300bdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
---
# file: roles/performance_tuning/tasks/x86_64.yaml

- name: Configure {{ ansible_machine }} kernel parameters
  lineinfile:
    path: '/etc/default/grub'
    state: 'present'
    regexp: '^GRUB_CMDLINE_LINUX='
    line: 'GRUB_CMDLINE_LINUX="isolcpus={{ grub.isolcpus }} nohz_full={{ grub.nohz_full }} rcu_nocbs={{ grub.rcu_nocbs }} 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"'
  notify:
    - 'Update GRUB'
    - 'Reboot server'
  tags: set-grub