Add IRQ pinning to ansible host-setup 58/3858/2
authorpmikus <pmikus@cisco.com>
Wed, 16 Nov 2016 20:24:28 +0000 (21:24 +0100)
committerPeter Mikus <pmikus@cisco.com>
Wed, 16 Nov 2016 20:27:36 +0000 (20:27 +0000)
Change-Id: I4eb46763213cc9e8723a6ff1cf380a5498aae7d6
Signed-off-by: pmikus <pmikus@cisco.com>
resources/tools/testbed-setup/playbooks/01-host-setup.yaml

index 7158ce2..3486df5 100644 (file)
@@ -61,6 +61,8 @@
     copy: src=files/cpufrequtils dest=/etc/default/cpufrequtils owner=root group=root mode=0644
   - name: Disable IRQ load balancing
     copy: src=files/irqbalance dest=/etc/default/irqbalance owner=root group=root mode=0644
+  - name: Pinning of IRQs
+    command: for l in `ls /proc/irq`; do echo 1 | sudo tee /proc/irq/$l/smp_affinity; done
   - name: Disable ondemand
     service: name=ondemand enabled=no
   - name: Install cgroup-support

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.