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

Read package temp and multiplier via CLI app

Ty_C_
Beginner
388 Views

We're writing an application that needs to read package temp and current core multiplier.  We haven't found any useful information from Intel so far about how to access this information.  Additionally, we also want to be able to set the core multiplier.  Does anyone know how we go about starting to write this app?  We haven't been able to find any API's, SDK's, or documentation that points us in the correct direction.

0 Kudos
5 Replies
Patrick_F_Intel1
Employee
388 Views

windows or linux?

0 Kudos
Ty_C_
Beginner
388 Views

Windows, thanks.

0 Kudos
Patrick_F_Intel1
Employee
388 Views

You can look at http://openhardwaremonitor.org/ for source code and binaries for the temperature.

On windows, I haven't had much luck controlling the cpu frequency. Windows generally keeps butting in and changing the frequency.

But once you have the ring 0 ability to read/write MSRs, you can look at linux frequency governor code to see how to change the frequency. Note that you can only increase the frequency beyond the turbo frequency on 'extreme' processors (or that is how it used to be).

Lots of BIOS's have an option to change the frequency.

Pat

0 Kudos
Ty_C_
Beginner
388 Views

Thanks, that gives me a start.  We're working with K or X flavor CPU's, so adjusting the multiplier shouldn't be a problem.  Since we need to monitor multiplier and temp in psuedo real-time and make multiplier changes based on temp, we can't rely on a BIOS to set the multiplier.

0 Kudos
Roman_D_Intel
Employee
388 Views

Hi,

Maybe it can be useful too: Intel Performance Counter Monitor contains both source code for reading core and package thermal headroom. Package thermal headroom is supported on Intel(r) Xeon(r) E5 family processors only.

Best regards,

Roman

0 Kudos
Reply