aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/playbooks
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2017-07-11 14:44:13 +0200
committerPeter Mikus <pmikus@cisco.com>2017-07-11 14:44:13 +0200
commitc288339208b92eaed60f5c01866d6dec3675314a (patch)
tree6ea5425c046b08f5e53a2f0d983334feba42e119 /resources/tools/testbed-setup/playbooks
parent71c7b4a491fece7940c6e8b2c1e5b7d57390f7c8 (diff)
Add IRQ/RCU/Writeback pinning to ansible
Change-Id: I650d9cb1ee44b6fa7cee79a86dad2b515256b239 Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/tools/testbed-setup/playbooks')
-rw-r--r--resources/tools/testbed-setup/playbooks/01-host-setup.yaml15
1 files changed, 15 insertions, 0 deletions
diff --git a/resources/tools/testbed-setup/playbooks/01-host-setup.yaml b/resources/tools/testbed-setup/playbooks/01-host-setup.yaml
index 8fa9d66799..4401fbb958 100644
--- a/resources/tools/testbed-setup/playbooks/01-host-setup.yaml
+++ b/resources/tools/testbed-setup/playbooks/01-host-setup.yaml
@@ -101,6 +101,21 @@
copy: src=files/requirements.txt dest=/tmp/requirements.txt
- name: Install PIP requirements
pip: requirements=/tmp/requirements.txt
+ - name: IRQ pinning
+ lineinfile:
+ dest: /etc/rc.local
+ insertbefore: '^exit 0'
+ line: 'for l in `ls /proc/irq`; do echo 1 | sudo tee /proc/irq/$l/smp_affinity; done'
+ - name: RCU pinning
+ lineinfile:
+ dest: /etc/rc.local
+ insertbefore: '^exit 0'
+ line: 'for i in `pgrep rcu[^c]` ; do sudo taskset -pc 0 $i ; done'
+ - name: CPU writeback mask
+ lineinfile:
+ dest: /etc/rc.local
+ insertbefore: '^exit 0'
+ line: 'echo 1 | sudo tee /sys/bus/workqueue/devices/writeback/cpumask'
- hosts: tg
remote_user: testuser
sudo: yes