Re: [PATCH] cpufreq: stats: Switch to ktime and msec instead of jiffies and usertime

2020-11-11 Thread Viresh Kumar
On 11-11-20, 09:13, Thomas Renninger wrote: > Am Mittwoch, 11. November 2020, 06:13:50 CET schrieb Viresh Kumar: > > On 10-11-20, 13:53, Thomas Renninger wrote: > > > Am Dienstag, 10. November 2020, 12:07:37 CET schrieb Viresh Kumar: > > > > The cpufreq and thermal core, both provide sysfs statisti

Re: [PATCH] cpufreq: stats: Switch to ktime and msec instead of jiffies and usertime

2020-11-11 Thread Thomas Renninger
Am Mittwoch, 11. November 2020, 06:13:50 CET schrieb Viresh Kumar: > On 10-11-20, 13:53, Thomas Renninger wrote: > > Am Dienstag, 10. November 2020, 12:07:37 CET schrieb Viresh Kumar: > > > The cpufreq and thermal core, both provide sysfs statistics to help > > > userspace learn about the behavior

Re: [PATCH] cpufreq: stats: Switch to ktime and msec instead of jiffies and usertime

2020-11-10 Thread Viresh Kumar
On 10-11-20, 13:59, Rafael J. Wysocki wrote: > Well, this may confuse user space using the stats today. > > But whoever uses cpupower may be confused. Yes, it will confuse them for once and they will probably learn of the change, not sure how many of them would be there though who look at these s

Re: [PATCH] cpufreq: stats: Switch to ktime and msec instead of jiffies and usertime

2020-11-10 Thread Viresh Kumar
On 10-11-20, 11:36, Lukasz Luba wrote: > I am not sure if these ktime_get() are not too heavy in the code path > visited by the scheduler. Ahh Right. I missed that. > How about local_clock()? > It's used in ./drivers/cpuidle/cpuidle.c to do similar accounting. Will have a look. -- viresh

Re: [PATCH] cpufreq: stats: Switch to ktime and msec instead of jiffies and usertime

2020-11-10 Thread Viresh Kumar
On 10-11-20, 13:53, Thomas Renninger wrote: > Am Dienstag, 10. November 2020, 12:07:37 CET schrieb Viresh Kumar: > > The cpufreq and thermal core, both provide sysfs statistics to help > > userspace learn about the behavior of frequencies and cooling states. > > > > This is how they look: > > /sys

Re: [PATCH] cpufreq: stats: Switch to ktime and msec instead of jiffies and usertime

2020-11-10 Thread Rafael J. Wysocki
On Tue, Nov 10, 2020 at 12:07 PM Viresh Kumar wrote: > > The cpufreq and thermal core, both provide sysfs statistics to help > userspace learn about the behavior of frequencies and cooling states. > > This is how they look: > > /sys/devices/system/cpu/cpufreq/policy0/stats/time_in_state:208000 11

Re: [PATCH] cpufreq: stats: Switch to ktime and msec instead of jiffies and usertime

2020-11-10 Thread Thomas Renninger
Am Dienstag, 10. November 2020, 12:07:37 CET schrieb Viresh Kumar: > The cpufreq and thermal core, both provide sysfs statistics to help > userspace learn about the behavior of frequencies and cooling states. > > This is how they look: > /sys/devices/system/cpu/cpufreq/policy0/stats/time_in_state:

Re: [PATCH] cpufreq: stats: Switch to ktime and msec instead of jiffies and usertime

2020-11-10 Thread Lukasz Luba
On 11/10/20 11:07 AM, Viresh Kumar wrote: The cpufreq and thermal core, both provide sysfs statistics to help userspace learn about the behavior of frequencies and cooling states. This is how they look: /sys/devices/system/cpu/cpufreq/policy0/stats/time_in_state:208000 11 /sys/devices/system