From: Laurent Mazet Date: Fri, 16 Jan 2015 18:32:13 +0000 (+0100) Subject: correct interrupt distribution on acq X-Git-Tag: debian_7.8.1~15 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=20643014ac14d355201c963a79f82fe719b84150;p=debian6500.git correct interrupt distribution on acq --- 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