ubuntu:cpu:create_100_cpu_load
This is an old revision of the document!
Table of Contents
Ubuntu - CPU - Create 100% CPU Load
To stress test and benchmark certain key aspects of it including CPU performance.
Install Stress or Stress-ng in Linux
sudo apt install stress
or
sudo apt install stress-ng
Impose 100% CPU Load
Run stress or stress-ng.
sudo stress-ng --cpu 4 -v --timeout 30s
NOTE: where
- –cpu: Specifies the number of cores.
- -v: Enables verbose mode.
- –timeout: Specifies the time after which the command will terminate.
Check CPU usage
top
ubuntu/cpu/create_100_cpu_load.1652211760.txt.gz · Last modified: 2022/05/10 19:42 by peter