post #1 of 1
Thread Starter 

Thread for OS tweaks, hacks, mods, and scripts

 

Core Hack for Slackware:

Quote:
cat /proc/stat | awk 'BEGIN { TARGET_NCPUS=16 } ; { if ($1 == "intr") { for (i=NR-2;i<TARGET_NCPUS;i++) print "cpu" i S } ; S="" ; for (i=2;i<=NF;i++) S=S " " $i ; print }' > /tmp/stat.save
mount --bind /tmp/stat.save? /proc/stat

 

 

Core Hack for Ubuntu:

Quote:
sudo cat /proc/stat | awk 'BEGIN { TARGET_NCPUS=16 } ; { if ($1 == "intr") { for (i=NR-2;i<TARGET_NCPUS;i++) print "cpu" i S } ; S="" ; for (i=2;i<=NF;i++) S=S " " $i ; print }' > /tmp/stat.save
sudo mount --bind /tmp/stat.save /proc/stat

Edited by [T]yphoon - 1/31/13 at 10:25am