stress-ng
all
Load and stress a Linux system in various ways (CPU, memory, I/O, etc.). Useful for benchmarking, hardware validation, and stability testing.
More info →Options (5)
-c, --cpubooleanStress all CPUs with 4 workers for 60 seconds
Example:
stress-ng {{[-c|--cpu]}} 4 {{[-t|--timeout]}} 60s-t, --timeoutbooleanStress all CPUs with 4 workers for 60 seconds
Example:
stress-ng {{[-c|--cpu]}} 4 {{[-t|--timeout]}} 60s-m, --vmbooleanStress virtual memory with 2 workers for 30 seconds
Example:
stress-ng {{[-m|--vm]}} 2 --vm-bytes {{512M}} {{[-t|--timeout]}} 30s-i, --iobooleanStress the I/O subsystem with 3 workers for 45 seconds
Example:
stress-ng {{[-i|--io]}} 3 {{[-t|--timeout]}} 45s-a, --allbooleanRun all stress tests for 2 minutes
Example:
stress-ng {{[-a|--all]}} {{1}} {{[-t|--timeout]}} 2mExamples (4)
Stress all CPUs with 4 workers for 60 seconds
stress-ng [-c|--cpu] 4 [-t|--timeout] 60sStress virtual memory with 2 workers for 30 seconds
stress-ng [-m|--vm] 2 --vm-bytes 512M [-t|--timeout] 30sStress the I/O subsystem with 3 workers for 45 seconds
stress-ng [-i|--io] 3 [-t|--timeout] 45sRun all stress tests for 2 minutes
stress-ng [-a|--all] 1 [-t|--timeout] 2mmade by @shridhargupta | data from tldr-pages