Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
2n-zn2 Epyc backport
[csit.git]
/
resources
/
tools
/
testbed-setup
/
ansible
/
roles
/
performance_tuning
/
tasks
/
main.yaml
diff --git
a/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/main.yaml
b/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/main.yaml
index
9fedd27
..
c437b40
100644
(file)
--- a/
resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/main.yaml
+++ b/
resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/main.yaml
@@
-9,18
+9,24
@@
tags:
- install-dependencies
tags:
- install-dependencies
+- name: Performance Tuning - Distribution - release - machine optimizations
+ include_tasks: '{{ ansible_distribution|lower }}_{{ ansible_distribution_release }}.yaml'
+ tags:
+ - machine-optimizations
+
- name: Performance Tuning - Configure {{ ansible_machine }} Kernel Parameters
lineinfile:
path: "/etc/default/grub"
state: "present"
regexp: "^GRUB_CMDLINE_LINUX="
- name: Performance Tuning - Configure {{ ansible_machine }} Kernel Parameters
lineinfile:
path: "/etc/default/grub"
state: "present"
regexp: "^GRUB_CMDLINE_LINUX="
- line: "
{{ grub_cmdline_linux[ansible_machine] }}
"
+ line: "
GRUB_CMDLINE_LINUX=\"{% for key, value in grub.items() %}{% if value %}{{key}}={{value}} {% else %}{{key}} {% endif %}{% endfor %}\"
"
notify:
- "Update GRUB"
notify:
- "Update GRUB"
- - "Reboot server"
tags:
- set-grub
tags:
- set-grub
+- meta: flush_handlers
+
- name: Performance Tuning - Turbo Boost
import_tasks: turbo_boost.yaml
when: >
- name: Performance Tuning - Turbo Boost
import_tasks: turbo_boost.yaml
when: >
@@
-148,6
+154,18
@@
tags:
- copy-cpufrequtils
tags:
- copy-cpufrequtils
+- name: Performance Tuning - Copy Irqbalance File
+ template:
+ src: "files/irqbalance"
+ dest: "/etc/default/irqbalance"
+ owner: "root"
+ group: "root"
+ mode: "0644"
+ notify:
+ - "Update GRUB"
+ tags:
+ - copy-irqbalance
+
- name: Performance Tuning - Set Ondemand Service To Disable
service:
name: "ondemand"
- name: Performance Tuning - Set Ondemand Service To Disable
service:
name: "ondemand"