From 20643014ac14d355201c963a79f82fe719b84150 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Fri, 16 Jan 2015 19:32:13 +0100 Subject: [PATCH] correct interrupt distribution on acq --- master/opt/cluster/acq/etc/rc.local | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/master/opt/cluster/acq/etc/rc.local b/master/opt/cluster/acq/etc/rc.local index fd73c36..72417e6 100755 --- a/master/opt/cluster/acq/etc/rc.local +++ b/master/opt/cluster/acq/etc/rc.local @@ -12,12 +12,12 @@ # By default this script does nothing. # distribute interrupt for eth0 on core 1-5 -core=(2 4 8 16 32) +core=(2 4 8 10 20) l=0 for i in $(awk '/eth0/ {sub(/:/, ""); print $1}' /proc/interrupts); do echo ${core[$l]} > /proc/irq/$i/smp_affinity let l++ - [ $l -eq 5 ] && l=0 + [ $l -eq 6 ] && l=1 done exit 0 -- 2.30.2