IRQ affinity tweak for ESPRESSOBin

This commit is contained in:
Thomas Kaiser 2017-04-23 18:48:18 +02:00 committed by GitHub
parent 907a6120bb
commit 1033826f17

View File

@ -211,6 +211,13 @@ prepare_board() {
echo 8 >/proc/irq/$(awk -F":" "/eth/ {print \$1}" </proc/interrupts | sed 's/\ //g' | head -n1)/smp_affinity
echo 7 >/sys/class/net/eth0/queues/rx-0/rps_cpus
;;
*)
case ${BOARD} in
espressobin) # try to redistribute eth0 irq to dedicated core
echo 2 >/proc/irq/$(awk -F":" '/eth0/ {print $1}' </proc/interrupts | sed 's/\ //g')/smp_affinity 2>/dev/null
;;
esac
;;
esac
} # prepare_board