首页 > 解决方案 > 压力-ng 未达到 100% CPU 负载

问题描述

我正在使用 stress-ng,但无法达到 100% 的 CPU 负载。 stress-ng, version 0.09.60在内核上4.1.35是一个四核 ARM 处理器。我使用了以下命令:

stress-ng --matrix 4 --tz --ignite-cpu

我注意到当我使用以下命令时,cpu 以 25% 的增量上升到 75%:

例如,任何更高的工作人员矩阵数量都不会增加负载

我也尝试过参考
stress-ng -c 4 -l 100stress-ng -c 0 -l 100它仍然没有超过 75%。事实上,这些--cpu-load选项并没有像选项一样保持 cpu 的持续运行--matrix

标签: linuxstress-testingcpu-load

解决方案


I wonder if you want to use dd to increase CPU benchmark. I usually use it to test CPU usage alarm.

dd if=/dev/zero of=/storage/test bs=1M count=1024 | md5sum

ref: How to use 'dd' to benchmark your disk or CPU?

Perhaps not many people use this, but 'dd' in conjunction with any stream-processing CPU-intensive program can also be used as a simple CPU benchmark! It may be not very accurate, but the huge advantage is that it doesn't require installing any additional software whatsoever, and typically you can run this “out of the box” on any GNU/Linux system.


推荐阅读