From 41a2934a05a650a2fea5f77d2ba024f6fed2777d Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Mon, 16 Nov 2015 20:13:57 +0100 Subject: [PATCH] remove eth irq settings from rc.local --- master/opt/cluster/acq/etc/rc.local | 10 ---------- master/opt/cluster/lite/etc/rc.local | 20 -------------------- 2 files changed, 30 deletions(-) diff --git a/master/opt/cluster/acq/etc/rc.local b/master/opt/cluster/acq/etc/rc.local index 38c1c6a..e7af68d 100755 --- a/master/opt/cluster/acq/etc/rc.local +++ b/master/opt/cluster/acq/etc/rc.local @@ -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 diff --git a/master/opt/cluster/lite/etc/rc.local b/master/opt/cluster/lite/etc/rc.local index 802ebe2..facfb7e 100755 --- a/master/opt/cluster/lite/etc/rc.local +++ b/master/opt/cluster/lite/etc/rc.local @@ -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 -- 2.30.2