remove eth irq settings from rc.local
authorLaurent Mazet <laurent.mazet@thalesgroup.com>
Mon, 16 Nov 2015 19:13:57 +0000 (20:13 +0100)
committerLaurent Mazet <laurent.mazet@thalesgroup.com>
Mon, 16 Nov 2015 19:13:57 +0000 (20:13 +0100)
master/opt/cluster/acq/etc/rc.local
master/opt/cluster/lite/etc/rc.local

index 38c1c6ae96a89878c50c28d9235c81b771370105..e7af68d7ce1ac215c59fa3ae774aa9c4e29b0fb6 100755 (executable)
@@ -9,16 +9,6 @@
 # In order to enable or disable this script just change the execution
 # bits.
 
-# set eth interrupts on core 0-4
-core=(1 2 4 8 10)
-for j in $(seq 0 5); do
-       for i in $(cat /proc/interrupts |awk '/eth'$j'/ {sub(/:/, "");; print $1}'); do
-                       echo ${core[$l]} > /proc/irq/$i/smp_affinity
-               let l++;
-               [ $l -eq ${#core[*]} ] && l=0
-       done
-done
-
 # check eth2-5 (issue with client blade)
 ip addr | awk '/: / {sub(/:/, "", $2); eth=$2} /inet / {print eth, $2}' > /root/ip.addr
 for i in $(seq 2 5); do
index 802ebe28a00e8050ae995b84b97c5fbbf5a90219..facfb7e0a1828cffb8fb66cbc90ab4363bc93733 100755 (executable)
@@ -9,26 +9,6 @@
 # In order to enable or disable this script just change the execution
 # bits.
 
-# distribute interrupt for eth0 on core 0
-core=(800)
-eth=0
-l=0
-for i in $(awk '/eth'$eth'/ {sub(/:/, ""); print $1}' /proc/interrupts); do
-  echo ${core[$l]} > /proc/irq/$i/smp_affinity
-  l=$(expr $l + 1)
-  [ $l -eq ${#core[*]} ] && l=0
-done
-
-# distribute interrupt for eth1 on core 11
-core=(1)
-eth=1
-l=0
-for i in $(awk '/eth'$eth'/ {sub(/:/, ""); print $1}' /proc/interrupts); do
-  echo ${core[$l]} > /proc/irq/$i/smp_affinity
-  l=$(expr $l + 1)
-  [ $l -eq ${#core[*]} ] && l=0
-done
-
 # remove acpi cpu frequence controler
 modprobe -r acpi_cpufreq