ubuntu:cpu:create_100_cpu_load
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ubuntu:cpu:create_100_cpu_load [2022/05/10 19:42] – created peter | ubuntu:cpu:create_100_cpu_load [2022/05/10 19:55] (current) – peter | ||
---|---|---|---|
Line 5: | Line 5: | ||
---- | ---- | ||
- | ===== Install Stress or Stress-ng | + | ===== Install Stress or Stress-ng ===== |
<code bash> | <code bash> | ||
Line 16: | Line 16: | ||
sudo apt install stress-ng | sudo apt install stress-ng | ||
</ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
---- | ---- | ||
Line 44: | Line 49: | ||
</ | </ | ||
+ | ---- | ||
+ | ===== Other methods to create 100% CPU load ===== | ||
+ | |||
+ | <code bash> | ||
+ | yes > /dev/null & | ||
+ | </ | ||
+ | |||
+ | **NOTE: | ||
+ | |||
+ | To impose this against multiple cores, then run the command multiple times to exhaust all the CPU power: | ||
+ | |||
+ | <code bash> | ||
+ | yes > /dev/null & | ||
+ | yes > /dev/null & | ||
+ | yes > /dev/null & | ||
+ | yes > /dev/null & | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | <code bash> | ||
+ | killall yes | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Another method to produce 100% CPU load usage ===== | ||
+ | |||
+ | <code bash> | ||
+ | dd if=/ | ||
+ | </ | ||
+ | |||
+ | To fully utilize all the cores on your system, run the following command: | ||
+ | |||
+ | <code bash> | ||
+ | fulload() { dd if=/ | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
ubuntu/cpu/create_100_cpu_load.1652211760.txt.gz · Last modified: 2022/05/10 19:42 by peter