Created
June 28, 2017 06:41
-
-
Save jsidhu/94a4075bc9abcdb50934627a82729e87 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fulload() { dd if=/dev/zero of=/dev/null | dd if=/dev/zero of=/dev/null | dd if=/dev/zero of=/dev/null | dd if=/dev/zero of=/dev/null & }; fulload; read; killall dd | |
Repeat the command in the curly brackets as many times as the number of threads you want to produce (here 4 threads). Simple enter hit will stop it (just make sure no other dd is running on this user or you kill it too). | |
https://stackoverflow.com/questions/2925606/how-to-create-a-cpu-spike-with-a-bash-command |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment