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
#!/bin/bash | |
script_name=$(basename $0) | |
script_version='0.1.0' | |
printf "* %s (%s)\n" "${script_name}" "${script_version}" | |
printf "System loadtest script that recursively forks itself\n" | |
printf "For maximum load:\n" | |
printf "\t * Raise maximum number of open files fs.file-max\n" | |
printf "\t * Raise user number of files soft/hard limits in /etc/security/limits.conf\n" | |
printf "**** CTRL + C to stop ****\n" | |
parent_process=${1:-$$} |