电源配置文件
最后更新
可用的电源配置文件及其特性
best_effort
- 很好地平衡了 NN 和 CPU 任务
- 产生高推理 FPS
- 在大多数情况下,也比
sustained_nn_heavy保持更高的 CPU 性能
sustained_nn_heavy
- 优先考虑每秒一致的 NN 推理
- 通常产生最高的 FPS
- 代价是 CPU 效率,在压力下会显著下降
sustained_cpu_heavy
- 返回最低的 FPS,特别是对于 NN 密集型任务
- 作为交换,它提供了出色的 CPU 效率,使其在 CPU 密集型或多任务应用程序中非常有用
设置电源配置文件
agentconfd 切换电源配置文件:Command Line
1agentconfd power-switch --profile best_effortbest_effort 替换为任何受支持的配置文件。电源配置文件基准测试
stress-ng 工具将 CPU 压力到 100%,以模拟重负载场景。基准测试结果(在 CPU 满载下)
| 模型 | best_effort FPS VS Bogo Ops/s | sustained_cpu_heavy FPS VS Bogo Ops/s | sustained_nn_heavy FPS VS Bogo Ops/s |
|---|---|---|---|
| yolov8-instance-segmentation-large | 149.17fps 119.62ops/s | 57.83fps 119.41ops/s | 150.62fps 57.5ops/s |
| yolov10-nano | 657.06fps 85.75ops/s | 238.3fps 118.88ops/s | 655.44fps 58.86ops/s |
| yolo-world-l | 71.82fps 90.59ops/s | 27.57fps 119.09ops/s | 74.56fps 50.58ops/s |
| scrfd-face-detection | 380.85fps 89.02ops/s | 131.42fps 119.7ops/s | 381.94fps 49.46ops/s |
| yolov8-large-pose-estimation | 171.96fps 92.96ops/s | 65.36fps 119.36ops/s | 173.06fps 52.76ops/s |
“Bogo Ops/s (usr+sys)”衡量什么?
bogo ops/s = 总 bogo ops / (用户时间 + 系统时间)- 值越高 = CPU 执行效率越高
- 通过以下方式测量:stress-ng
- 有助于比较电源配置文件对 CPU 资源造成的压力
测量精度
- **FPS(每秒帧数)**值是使用
modelconverter benchmark工具收集的,大约有 ±10% 的误差范围。 - **CPU 效率(bogo ops/s)**是使用
stress-ng输出在user+system时间下测量的。然而,重要的是将这些数字视为观察性的,而不是精确的性能指标。