Skip to content

Instantly share code, notes, and snippets.

@diabloneo
Created September 10, 2014 06:56
Show Gist options
  • Save diabloneo/d8f31006d2982013ab9d to your computer and use it in GitHub Desktop.
Save diabloneo/d8f31006d2982013ab9d to your computer and use it in GitHub Desktop.
Make CPU usage 100%
#!/bin/bash
cpunum=$(cat /proc/cpuinfo | grep 'processor' | wc -l)
for i in $(seq ${cpunum})
do
dd if=/dev/zero of=/dev/null &
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment