在AWS Cloud VM上Rapl?目录/sys/class/powerCapp中的无intel_rapl和相关文件

发布于 2025-02-10 00:53:50 字数 1342 浏览 1 评论 0原文

我想使用英特尔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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文