Stress-ng test on Ubuntu 22.04

Stress-ng test on Ubuntu 22.04

Stress-ng test on Ubuntu 22.04

Install
sudo apt install stress-ng

Example:
CPU Stress Test (Stress 4 CPU cores for 60s)
stress-ng --cpu 4 --timeout 60s

Example:
Memory Stress Test (Two 1GB processes for memory read and write test for 100s)
stress-ng --vm 2 --vm-bytes 1G --timeout 100s

Example:
HDD I/O Stress Test (Three processes continuously write 20GB for 180s)
stress-ng --hdd 3 --hdd-bytes 20G --timeout 180s

Example:
Comprehensive Stress Test (Simultaneous stress test on CPU, Memory and Disk fro 120s)
stress-ng --cpu 2 --vm 1 --vm-bytes 512M --hdd 1 --timeout 120s