1

我正在使用 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 --matrix 1 --tz --ignite-cpu→ 25% CPU 负载
  • stress-ng --matrix 2 --tz --ignite-cpu→ 50% CPU 负载
  • stress-ng --matrix 3 --tz --ignite-cpu→ 75% CPU 负载

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

  • stress-ng --matrix 10 --tz --ignite-cpu→ 75% CPU 负载

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

4

1 回答 1

0

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.

于 2021-04-12T17:47:30.853 回答