Simple Bash Scripts to Load the System
#!/bin/bash
while [ 1 ]
do
echo "hi"
done
Bash script to load the Specific Number of Cores for N amount of time.
#!/bin/bash
duration=720 # seconds (it will maintain the load for 12 mins)
instances=1 # cpus (It use only one core )
endtime=$(($(date +%s) + $duration))
for ((i=0; i<instances; i++))
do
while (($(date +%s) < $endtime)); do :; done &
done
No comments:
Post a Comment