power tools patches for 2.6.38
Len Brown
maintainerAs previously discussed, here are the latest
turbostat and x86_energy_perf_policy tools,
queued for 2.6.38 tools/power/.
Please let me know if you have any troubles with them.
thanks,
-Len Brown, Intel Open Source Technology Center
Len Brown
maintainer=?y?q?=5BPATCH=201/2=5D=20tools=3A=20create=20power/x86/turbostat?=
From: Len Brown <[email protected]>
turbostat is a Linux tool to observe proper operation of Intel(R) Turbo Boost Technology.
turbostat displays the actual processor frequency on x86 processors that include APERF and MPERF MSRs.
Note that turbostat is of limited utility on Linux kernels 2.6.29 and older, as acpi_cpufreq cleared APERF/MPERF up through that release.
On Intel Core i3/i5/i7 (Nehalem) and newer processors, turbostat also displays residency in idle power saving states, which are necessary for diagnosing any cpuidle issues that may have an effect on turbo-mode.
See the turbostat.8 man page for example usage.
--- tools/power/x86/turbostat/Makefile | 8 + tools/power/x86/turbostat/turbostat.8 | 172 ++++++ tools/power/x86/turbostat/turbostat.c | 1048 +++++++++++++++++++++++++++++++++ 3 files changed, 1228 insertions(+), 0 deletions(-) create mode 100644 tools/power/x86/turbostat/Makefile create mode 100644 tools/power/x86/turbostat/turbostat.8 create mode 100644 tools/power/x86/turbostat/turbostat.c
tools/power/x86/turbostat/Makefile new file +8 -0
@@ -0,0 +1,8 @@ +turbostat : turbostat.c + +clean : + rm -f turbostat + +install : + install turbostat /usr/bin/turbostat + install turbostat.8 /usr/share/man/man8
tools/power/x86/turbostat/turbostat.8 new file +172 -0
172 lines not on this page · raw message
tools/power/x86/turbostat/turbostat.c new file +1048 -0
1,048 lines not on this page · raw message
Signature · 1 line
1.7.4.rc1.7.g2cf08
Len Brown
maintainerPATCH 2/2 tools: create power/x86/x86_energy_perf_policy
In reply to Len BrownFrom: Len Brown <[email protected]>
MSR_IA32_ENERGY_PERF_BIAS first became available on Westmere Xeon. It is implemented in all Sandy Bridge processors -- mobile, desktop and server. It is expected to become increasingly important in subsequent generations.
x86_energy_perf_policy is a user-space utility to set the hardware energy vs performance policy hint in the processor. Most systems would benefit from "x86_energy_perf_policy normal" at system startup, as the hardware default is maximum performance at the expense of energy efficiency.
See x86_energy_perf_policy.8 man page for more information.
Background:
Linux-2.6.36 added "epb" to /proc/cpuinfo to indicate if an x86 processor supports MSR_IA32_ENERGY_PERF_BIAS, without actually modifying the MSR.
In March, 2010, Venkatesh Pallipadi proposed a small driver that programmed MSR_IA32_ENERGY_PERF_BIAS, based on the cpufreq governor in use. It also offered
a boot-time cmdline option to override.
http://lkml.org/lkml/2010/3/4/457
But hiding the hardware policy behind the
governor choice was deemed "kinda icky".
In June, 2010, I proposed a generic user/kernel API to generalize the power/performance policy trade-off. "RFC: /sys/power/policy_preference"
http://lkml.org/lkml/2010/6/16/399
That is my preference for implementing this capability, but I received no support on the list.
So in September, 2010, I sent x86_energy_perf_policy.c to LKML, a user-space utility that scribbles directly to the MSR.
http://lkml.org/lkml/2010/9/28/246
Here is that same utility, after responding to some review feedback, to live in tools/power/, where it is easily found.
--- tools/power/x86/x86_energy_perf_policy/Makefile | 8 + .../x86_energy_perf_policy.8 | 104 +++++++ .../x86_energy_perf_policy.c | 325 ++++++++++++++++++++ 3 files changed, 437 insertions(+), 0 deletions(-) create mode 100644 tools/power/x86/x86_energy_perf_policy/Makefile create mode 100644 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.8 create mode 100644 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c
tools/power/x86/x86_energy_perf_policy/Makefile new file +8 -0
@@ -0,0 +1,8 @@ +x86_energy_perf_policy : x86_energy_perf_policy.c + +clean : + rm -f x86_energy_perf_policy + +install : + install x86_energy_perf_policy /usr/bin/ + install x86_energy_perf_policy.8 /usr/share/man/man8/
tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.8 new file +104 -0
104 lines not on this page · raw message
tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c new file +325 -0
325 lines not on this page · raw message
Signature · 1 line
1.7.4.rc1.7.g2cf08