Last active
April 25, 2017 09:45
-
-
Save rpromyshlennikov/dfaa697bdec8ac623a1afcb50d50c698 to your computer and use it in GitHub Desktop.
Make high load of system with provided quantity of processes
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
#!/usr/bin/env bash | |
count="${1}" | |
if [[ -z "${1}" ]]; then | |
count=20 | |
fi | |
for ((process=1; process<="${count}"; process++)); do | |
(bash -c "while [ 1 ] ; do echo $((13**99)) 1>/dev/null 2>&1; done" &); | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment