Skip to content

Instantly share code, notes, and snippets.

@jsidhu
Created June 28, 2017 06:41
Show Gist options
  • Save jsidhu/94a4075bc9abcdb50934627a82729e87 to your computer and use it in GitHub Desktop.
Save jsidhu/94a4075bc9abcdb50934627a82729e87 to your computer and use it in GitHub Desktop.
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