Computer Tips - How can I max out the CPU on my Linux box (for testing)?

Date: 2007apr17 OS: Linux Keywords: peg Q. How can I max out the CPU on my Linux box (for testing)? A. Here are some good ways:
cat /dev/zero >/dev/null
cat /dev/urandom >/dev/null
grep hello /dev/urandom
tail /dev/zero
None of these need any disk access so just take as much CPU as they can get. On my box about 50%. If you are using these for purposes other than stress testing your own box... you didn't hear it here.