correct interrupt distribution on acq
authorLaurent Mazet <laurent.mazet@thalesgroup.com>
Fri, 16 Jan 2015 18:32:13 +0000 (19:32 +0100)
committerLaurent Mazet <laurent.mazet@thalesgroup.com>
Fri, 16 Jan 2015 18:32:13 +0000 (19:32 +0100)
master/opt/cluster/acq/etc/rc.local

index fd73c366f295767a89cfc643f969cec6491f770e..72417e6ae61e805fcc9d5c005f4d61b180b8f172 100755 (executable)
 # 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