Generate CPU Usage on Linux

In order to test some monitoring software on a Linux system I wanted to generate CPU Spikes to test some alarms and metrics. There are many ways this can be done with standard Linux commands; below is what I used:

sha1sum /dev/zero

I ran this command in a few different terminals (one for each core). A simple CTRL+C is all that is needed to break out of it.

Leave a Reply

Your email address will not be published.