[英]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.