X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=master%2Fopt%2Fcluster%2Facq%2Fetc%2Frc.local;h=72417e6ae61e805fcc9d5c005f4d61b180b8f172;hb=20643014ac14d355201c963a79f82fe719b84150;hp=fd73c366f295767a89cfc643f969cec6491f770e;hpb=6cfa8b5effc97f0fed7c85a10cf7173e1e4ed9a4;p=debian6500.git 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