简体   繁体   English

压力-ng 未达到 100% CPU 负载

[英]stress-ng not reaching 100% CPU load

I'm using stress-ng and not able to reach 100% cpu load.我正在使用 stress-ng,但无法达到 100% 的 CPU 负载。 stress-ng, version 0.09.60 on kernel 4.1.35 a quad core ARM processor. stress-ng, version 0.09.60 4.1.35核 ARM 处理器。 I've used the following commands:我使用了以下命令:

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

I noticed that the cpu climbs up in 25% increments to 75% when I use the following:我注意到当我使用以下命令时,cpu 以 25% 的增量上升到 75%:

  • stress-ng --matrix 1 --tz --ignite-cpu → 25% cpu load stress-ng --matrix 1 --tz --ignite-cpu → 25% cpu 负载
  • stress-ng --matrix 2 --tz --ignite-cpu → 50% cpu load stress-ng --matrix 2 --tz --ignite-cpu → 50% cpu 负载
  • stress-ng --matrix 3 --tz --ignite-cpu → 75% cpu load stress-ng --matrix 3 --tz --ignite-cpu → 75% cpu 负载

Any higher matrix number of workers does not increase the load, for example例如,任何更高的工作人员矩阵数量都不会增加负载

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

I've also tried as referenced我也尝试过参考
stress-ng -c 4 -l 100 or stress-ng -c 0 -l 100 and it still doesn't go above 75%. stress-ng -c 4 -l 100stress-ng -c 0 -l 100仍然没有 go 超过 75%。 In fact those --cpu-load options don't keep cpu up as consistently as --matrix option.事实上,那些--cpu-load选项不会像--matrix选项那样保持 cpu 的一致。

I wonder if you want to use dd to increase CPU benchmark.我想知道您是否想使用dd来提高 CPU 基准。 I usually use it to test CPU usage alarm.我通常用它来测试CPU使用率警报。

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

ref: How to use 'dd' to benchmark your disk or CPU? ref:如何使用 'dd' 对您的磁盘或 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.可能用这个的人不多,但是'dd'结合任何流处理CPU密集型程序也可以作为一个简单的CPU基准,它可能不是很准确,但它的巨大优势是它不需要安装任何其他软件。 and typically you can run this “out of the box” on any GNU/Linux system.通常,您可以在任何 GNU/Linux 系统上“开箱即用”地运行它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM