linux cpu stress
Posted: 27 Nov 2022, 01:28
Stress is a simple command line utility to conduct CPU, memory and disk input-output stress tests.
You can install stress in Ubuntu by running the following command:
Note that Stress will not run any benchmark test on your system, instead it will consistently hammer the CPU and make it run at 100%. You are advised to close all the running apps before doing a test. Running Stress for a longer period can crash the system and you may need to do a hard reboot to recover the system.
You can start the stress test by running the command below where “cpu” refers to the number of threads used for performing the test. To stop the test anytime, close the terminal or press <CTRL + C> to make it stop.
You can install stress in Ubuntu by running the following command:
Code: Select all
sudo apt install stress
You can start the stress test by running the command below where “cpu” refers to the number of threads used for performing the test. To stop the test anytime, close the terminal or press <CTRL + C> to make it stop.
Code: Select all
stress --cpu 2