Skip to content

Instantly share code, notes, and snippets.

View greggyNapalm's full-sized avatar

Gregory Komissarov greggyNapalm

  • Saint-Petersburg
View GitHub Profile
#!/bin/bash
# from http://habrahabr.ru/post/108240/
ncpus=`grep -ciw ^processor /proc/cpuinfo`
test "$ncpus" -gt 1 || exit 1
n=0
for irq in `cat /proc/interrupts | grep eth | awk '{print $1}' | sed s/\://g`
do
f="/proc/irq/$irq/smp_affinity"