I usually take the cpuburn suite:
sudo apt-get install cpuburn
for i in {1..4}; do burnK7 & done
Replace 4 with the number of cores / HT-threads you have or want to stress.
Note: This stresses as much chip area as possible at the same time, it's programmed to generate maximum power dissipation. I had to write this post a second time, somehow my machine didn't like it :-(
You could also do cpuburn in sequences:
burnP6 & burnP6 & burnP6 & burnP6 &
[1] 28520
[2] 28521
[3] 28522
[4] 28523
And when you want to stop them:
killall burnP6
You could also multiply burnP6 & to match the number of CPU cores on your system.
catsimultaneously? – Nate Koppenhaver Jun 30 '12 at 17:16screensessions. But I would prefer a more sophisticated solution if possible. – Oliver Salzburg♦ Jun 30 '12 at 17:18cat /dev/random > /dev/null. Guess/dev/zeroworks too. :-) – oKtosiTe Jul 1 '12 at 7:25