Re: [PATCH 2/4 v2] x86: use common aperfmperf_khz_on_cpu() to calculate KHz using APERF/MPERF

2017-07-26 Thread Len Brown
Hi Doug, Clearly you are a "discerning user", who understands the limitations of the kernel sysfs interface, both new and old, for communicating frequency. With the limitations of the (old and new) sysfs interfaces, why are you using it, rather than turbostat? >> As with previous methods of calc

RE: [PATCH 2/4 v2] x86: use common aperfmperf_khz_on_cpu() to calculate KHz using APERF/MPERF

2017-07-25 Thread Doug Smythies
Sorry to be late to the party on this one: On 2017.06.23 10:12 Len Brown wrote: > The goal of this change is to give users a uniform and meaningful > result when they read /sys/...cpufreq/scaling_cur_freq > on modern x86 hardware, as compared to what they get today. Myself, I like what I got the

Re: [PATCH 2/4 v2] x86: use common aperfmperf_khz_on_cpu() to calculate KHz using APERF/MPERF

2017-06-24 Thread Rafael J. Wysocki
On Sat, Jun 24, 2017 at 10:56 AM, Thomas Gleixner wrote: > On Fri, 23 Jun 2017, Len Brown wrote: >> This x86 native method to calculate MHz returns a meaningful result >> no matter if P-states are controlled by hardware or firmware >> and/or if the Linux cpufreq sub-system is or is-not installed.

Re: [PATCH 2/4 v2] x86: use common aperfmperf_khz_on_cpu() to calculate KHz using APERF/MPERF

2017-06-24 Thread Thomas Gleixner
On Fri, 23 Jun 2017, Len Brown wrote: > This x86 native method to calculate MHz returns a meaningful result > no matter if P-states are controlled by hardware or firmware > and/or if the Linux cpufreq sub-system is or is-not installed. > > When this routine is invoked more frequently, the measurem

[PATCH 2/4 v2] x86: use common aperfmperf_khz_on_cpu() to calculate KHz using APERF/MPERF

2017-06-23 Thread Len Brown
From: Len Brown The goal of this change is to give users a uniform and meaningful result when they read /sys/...cpufreq/scaling_cur_freq on modern x86 hardware, as compared to what they get today. Modern x86 processors include the hardware needed to accurately calculate frequency over an interva