Software Tuning, Performance Optimization & Platform Monitoring
Discussion regarding monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform updating.

set power limit to DRAM with RAPL

Tomonori_T_
Beginner
5,467 Views

Hi,all.

I want to set power limit to DRAM with using RAPL.

So I set "Enable bit" to "1" and "DRAM Power Limit" to "power limit I wanted to set" in MSR_DRAM_POWER_LIMIT register.

Then, I set Power limit of DRAM to "20W" and mesured power HPCC benchmarks with RAPL.

But the limit didn't work.

Need any other configuration?

I use Xeon E5-2680.

Thanks.

Tomonori

0 Kudos
8 Replies
Roman_D_Intel
Employee
5,467 Views
Hi Tomonori, Did you try to use Intel(r) Power Governor for that purpose? Thanks, Roman
0 Kudos
Tomonori_T_
Beginner
5,467 Views
Hi, Roman. Thanks for the reply. >Did you try to use Intel(r) Power Governor for that purpose? No, I used source code our research group made. It rewrites MSRs' bits directly. Tomonori
0 Kudos
Roman_D_Intel
Employee
5,468 Views
Tomonori, could you try Intel(r) Power Governor utility and report if you have the same issue with it? Thanks, Roman
0 Kudos
Tomonori_T_
Beginner
5,468 Views
Roman, Thanks for your advice! But "init the RAPL library" failed when I try to run "power_gov",and other programs use init_rapl();, too. Why does it cause? I use Red Hat Enterprise Linux Server release 6.1, and there are the msr and cpuid kernel modules. Thanks, Tomonori
0 Kudos
Martin_D_Intel1
Employee
5,468 Views
Hi Tomonori, I cannot tell why init RAPL is failing. Can you give me your email, and I will send you some source code, so that we can investigate and make it work? thank you martin martin.p.dimitrov@intel.com
0 Kudos
Tomonori_T_
Beginner
5,468 Views
Hi all, Thank you for helping. But I hope you don’t mind answering another question. in the power_gov's readme, - The DRAM RAPL is not enabled in BIOS by default. To enable in BIOS, go to Memory Configuration and change the mode from 'Performance' to 'Power Efficient'. Then select 'Mode 1'. This is the VR (voltage regulator) mode of power estimation. When I changed to the 'Mode 1', are there any demerits? and what does 'Mode 0' means? In addition, I found the DRAM RAPL MODE in BIOS, and it can select DRAM RAPL MODE0, 1 and disable. These MODEs are equal to 'Mode' in power_gov's readme? Regards, Tomonori
0 Kudos
Cesar_B_
Beginner
5,468 Views

 

Hello Tomonori T.

  
The BIOS sets DDR RAPL mode though BIOS-to-Pcode Mailbox command.  In this case you may Set DRAM only, the power consumption of the main memory.

In  regards to DRAM RAPL modes you have two options: DRAM RAPL MODE0=DRAM power from pure activity based estimation and  DRAM RAPL MODE1= DRAM power from scaling activity-based estimation to match DDR VR total power (based on VR12 IOUT register)

Regards, 
Caesar B.

0 Kudos
APand8
Beginner
5,468 Views

Martin Dimitrov (Intel) wrote:

Hi Tomonori,

I cannot tell why init RAPL is failing. Can you give me your email, and I will send you some source code, so that we can investigate and make it work?

thank you
martin
martin.p.dimitrov@intel.com

Hello Martin,

  I am trying to use the Power Governor Tool on my machine It is a Haswell processor (Processor signature: 000306c3) with a Linux 14.04 (Kernel 4.4.0-51-generic). But when i run ./power_gov, the response is as follows:

Processor signature: 000306c3
RAPL not supported, or machine model not recognized.
Init failed!

I am trying to change the power limits on the systems using power gov but it fails at Init(). Also i have posted a query on this forum regarding the LOCK bit of the MSR_PKG_POWERLIMIT register (Link: https://software.intel.com/en-us/forums/software-tuning-performance-optimization-platform-monitoring/topic/704976). Please help me out in this matter.

Thanks in advance,

Anmol

0 Kudos
Reply