File: set_affinity.sh

package info (click to toggle)
netperf 2.7.0-0.1
  • links: PTS
  • area: non-free
  • in suites: bookworm, bullseye
  • size: 8,840 kB
  • sloc: ansic: 41,631; sh: 5,259; xml: 3,129; python: 2,376; awk: 68; makefile: 66
file content (2 lines) | stat: -rw-r--r-- 162 bytes parent folder | download
1
2
# one of these days I should make it take a parameter or three
grep eth0 /proc/interrupts | awk -F ":" '{printf("echo 1 > /proc/irq/%d/smp_affinity\n",$1)}' | sh