X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=master%2Fopt%2Fcluster%2Fslave%2Fetc%2Frc.local;fp=master%2Fopt%2Fcluster%2Fslave%2Fetc%2Frc.local;h=563698d0bf4d39777571457c9781530eac98af42;hb=15d19708439bb1286f4ad5283176b3d3a5c2fdbe;hp=37c199c94e4e2614a38938d20f1de53c7130d719;hpb=6ded6f01e55bbc73e2505f8fdaaf6a4410a038b0;p=debian6500.git diff --git a/master/opt/cluster/slave/etc/rc.local b/master/opt/cluster/slave/etc/rc.local index 37c199c..563698d 100755 --- a/master/opt/cluster/slave/etc/rc.local +++ b/master/opt/cluster/slave/etc/rc.local @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e # # rc.local # @@ -12,7 +12,16 @@ # By default this script does nothing. for i in $(seq 1 25); do - echo TRC6500 + echo TRC6500 +done + +# distribute interrupt for eth0 on core 1-6 +core=(2 4 8 10 20 40) +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 6 ] && l=1 done exit 0