Some days ago I needed a quick way to simulate load on a Linux sever. While there are many tools that can do this, all I needed was a simple bash one-line command that can make the CPUs beg for mercy.
What I ended up using is this:
dd if=/dev/zero bs=100M | gzip | gzip -d | gzip | gzip -d | gzip | gzip -d > /dev/null &
Send a few of these to the background and you’ll start seeing smoke coming from your server soon.