在AWS Cloud VM上Rapl?目录/sys/class/powerCapp中的无intel_rapl和相关文件
我想使用英特尔Rapl接口记录CPU的能源消耗。我正在使用两个服务器:AWS EC2实例和一台物理机器。 但是,我发现AWS EC2实例上的目录/sys/class
下没有powerCap
目录。将Linux内核更改为5.13.19版本并配置了Intel Rapl后,在Power Cap
目录下,/sys/class/class
。但是在/sys/class/class/powercap
下没有intel-rapl
,因此我也无法使用RAPL接口。
这就是我在AWS EC2实例上/sys/class/powerCap
下的内容:
$ ls /sys/class/powercap
dtpm
这是我在物理机器上的/sys/class/class/powercap 和也是我在AWS EC2实例上期望的:
$ ls /sys/class/powercap
dtpm intel-rapl intel-rapl:0 intel-rapl:0:0 intel-rapl:1 intel-rapl:1:0
这些是AWS EC2实例上与RAPL相关的模块,在我的物理机器上是相同的:
$ find /lib/modules/$(uname -r) -name *rapl*
/lib/modules/5.13.19/kernel/drivers/powercap/intel_rapl_common.ko
/lib/modules/5.13.19/kernel/drivers/powercap/intel_rapl_msr.ko
/lib/modules/5.13.19/kernel/drivers/thermal/intel/int340x_thermal/processor_thermal_rapl.ko
/lib/modules/5.13.19/kernel/arch/x86/events/rapl.ko
我可以从sudo sudo dmidecode -t4 | | GREP插座。设计:| WC -L
EC2实例上有4个CPU插座。 EC2实例的CPU是Intel Xeon。这些CPU支持RAPL。因此,在/sys/class/powerCap
下应该有更多的东西!
我正在为AWS EC2实例使用深度学习AMI(Ubuntu 18.04)版本61.2。
有人知道为什么我不能在AWS EC2实例上使用PowerCap和Rapl吗?是因为EC2实例是虚拟机,而虚拟机不支持RAPL接口?还是我错过了任何步骤?我真的很感谢任何帮助。谢谢你!
I want to use the Intel RAPL interface to record the energy consumption on CPUs. I am using two servers: an AWS EC2 instance and a physical machine.
However, I found that there is no powercap
directory under the directory /sys/class
on the AWS EC2 instance. After I changed the Linux kernel to version 5.13.19 and have the Intel RAPL configured, there is a power cap
directory under /sys/class
. But there is no intel-rapl
under /sys/class/powercap
, so I can not use the RAPL interface as well.
This is what I have under /sys/class/powercap
on the AWS EC2 instance:
$ ls /sys/class/powercap
dtpm
This is what I have under /sys/class/powercap
on the physical machine, and is also what I expect on the AWS EC2 instance:
$ ls /sys/class/powercap
dtpm intel-rapl intel-rapl:0 intel-rapl:0:0 intel-rapl:1 intel-rapl:1:0
These are the RAPL-related modules on the AWS EC2 instance, which are the same on my physical machine:
$ find /lib/modules/$(uname -r) -name *rapl*
/lib/modules/5.13.19/kernel/drivers/powercap/intel_rapl_common.ko
/lib/modules/5.13.19/kernel/drivers/powercap/intel_rapl_msr.ko
/lib/modules/5.13.19/kernel/drivers/thermal/intel/int340x_thermal/processor_thermal_rapl.ko
/lib/modules/5.13.19/kernel/arch/x86/events/rapl.ko
I can tell from sudo dmidecode -t4 | grep Socket.Designation: | wc -l
that there are 4 CPU sockets on the EC2 instance. The cpu for the EC2 instance is Intel Xeon. RAPL is supported for these cpus. So there should be something more under /sys/class/powercap
!
I am using the Deep Learning AMI (Ubuntu 18.04) Version 61.2 for the AWS EC2 instance.
Does anyone know why I cannot use powercap and RAPL on the AWS EC2 instance? Is it because the EC2 instance is a virtual machine and the RAPL interface is not supported by the virtual machine? Or have I missed out any steps? I would really appreciate any help. Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论