linux cpu stress

linux docker vm
Post Reply
dev
Site Admin
Posts: 60
Joined: 09 Mar 2021, 17:52

linux cpu stress

Post by dev »

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:

Code: Select all

sudo apt install stress
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.

Code: Select all

stress --cpu 2
Post Reply