Currently I am using below command
stress -c 2 -i 1 -m 1
Question: with above command, cpu utilization goes till 100%. Is there anyway I can limit it to only 80%?
Currently I am using below command
stress -c 2 -i 1 -m 1
Question: with above command, cpu utilization goes till 100%. Is there anyway I can limit it to only 80%?
You can use
cpulimit
link to limit CPU usage. Installcpulimit
using below command.sudo apt install cpulimit
Run stress command.
stress -c 2 -i 1 -m 1
Check
stress
PID usingps
ps -ef | grep stress
You can see PIDs of the stress command. Run cpulimit command for each and every stress process.