简体   繁体   English

如何在英特尔 RAPL 焦点设备上获取功率读数?

[英]How to get power reading on an Intel RAPL focal appliance?

I am working on a bash script to get power reading.我正在研究 bash 脚本来获取功率读数。 The line of code uj=$(cat /sys/class/powercap/intel-rapl/intel-rapl:0/energy_uj) in the script produce the error: No such file or directory.脚本中的代码行uj=$(cat /sys/class/powercap/intel-rapl/intel-rapl:0/energy_uj)产生错误:没有这样的文件或目录。

The CPU supports RAPL, but the path to the /intel/rapl in the /usr/ directory does not contain the energy_uj file. CPU支持RAPL,但是/usr/目录下的/intel/rapl路径不包含energy_uj文件。 Does anyone know the path to get the power reading?有谁知道获取功率读数的途径吗?

You could use the find command:您可以使用 find 命令:

find /sys/class/ -name '*energy_uj*' -ls

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

相关问题 如何在批处理脚本中启动 Intel Power Gadget? - How to start Intel Power Gadget in Batch Script? 如何在我的云设备库实例上启用 SAP GUI 脚本? - How do I enable SAP GUI scripting on my Cloud Appliance Library Instance? 如何在我的 python 代码中启用 Intel Extension for Pytorch(IPEX)? - How to enable Intel Extension for Pytorch(IPEX) in my python code? 如何强制./configure 使用 intel oneAPI 编译器? - How to force ./configure to use intel oneAPI compilers? 使用 intel_pstate 时如何设置特定的 cpu 频率 - How to set specific cpu frequency when using intel_pstate 如何在 flutter 中自动从 firebase SMS 读取 OTP - How to reading OTP from firebase SMS automatically in flutter 未捕获的类型错误:无法读取 null 的属性(读取“uid”)。 试图获取 currentUser.uid - Uncaught TypeError: Cannot read properties of null (reading 'uid'). Trying to get the currentUser.uid 英特尔 MKL 致命错误:无法加载 mkl_intel_thread.dll - Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll 如何为基于 Intel 的最新 Mac OS 创建具有特定/仅本机架构的存档构建 - How to create Archive build with Specific / Native Only Architecture for Intel based Latest Mac OS 如何使用标准 Apple 版本的 clang 从命令行在 M1 Mac 上构建 Intel 二进制文件? - How to build an Intel binary on an M1 Mac from the command line with the standard Apple version of clang?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM