lkml.org 
[lkml]   [2013]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/6] cpufreq: Add 'load_table' debugfs file to show colleced CPUs load
Date
This patchset add 'load_table' debugfs file to provide collected CPUs data.
The load_table debugfs file gives below CPU datas.
- measured time
- old CPU frequency
- new CPU frequency
- each CPU load

These data will mean the change of CPU frequency according to CPUs load at
specific measured time. Also, the user can determine the storage size of colleced
CPUs data. The range is from 10 to 1000.

Second, previous performance/powersave governor haven't calculated CPUs load
becuase these governor didn't change CPU frequency according to CPUs load. But,
load_table debugfs file always should indicate the collected CPUs data regardless
of the kind of cpufreq governor. So, the patch3/4/5 implement that performance/
powersave governor will check periodically CPUs load by calling dbs_check_cpu()
with timer.

Finally, the patch 6 explain the detailed description of load_table debugfs file.

Thanks,
Chanwoo Choi

[Test Result]
- the kind of SoC : Samsung EXYNOS4412
- a range of frequency : 200 ~ 1400MHz

- Ondemand governor and the number of online CPU is 4
Time(ms) Old Freq(Hz) New Freq(Hz) CPU0 CPU1 CPU2 CPU3
23820 500000 500000 53 86 2 73
23920 500000 400000 66 40 0 42
24020 400000 400000 71 71 10 52
24120 400000 300000 33 27 45 65
24220 300000 300000 4 37 71 34
24320 300000 300000 1 85 38 16
24420 300000 200000 6 41 15 51
24520 200000 200000 12 62 1 51
24620 200000 200000 9 51 0 58
24720 200000 200000 32 32 11 27

- Performance governor and the number of online CPU is 4
Time(ms) Old Freq(Hz) New Freq(Hz) CPU0 CPU1 CPU2 CPU3
3425930 1400000 1400000 0 0 0 0
3425945 1400000 1400000 0 0 0 0
3425960 1400000 1400000 0 0 0 0
3427105 1400000 1400000 0 0 0 0
3427109 1400000 1400000 0 0 33 100
3428135 1400000 1400000 0 0 0 0
3428425 1400000 1400000 0 0 0 0
3429385 1400000 1400000 0 0 0 0
3429400 1400000 1400000 0 0 0 0
3429415 1400000 1400000 0 0 0 0

- Powersave governor and the number of online CPU is 4
Time(ms) Old Freq(Hz) New Freq(Hz) CPU0 CPU1 CPU2 CPU3
3451945 200000 200000 3 0 0 2
3453930 200000 200000 0 1 0 1
3453945 200000 200000 2 2 0 0
3453960 200000 200000 1 0 1 0
3455065 200000 200000 0 0 0 0
3455075 200000 200000 1 5 1 0
3455570 200000 200000 0 0 0 0
3455605 200000 200000 0 0 0 3
3456350 200000 200000 0 0 0 0
3456360 200000 200000 41 2 39 43

- Powersave governor and the number of online CPU is 2 (CPU[1-2] is offline)
Time(ms) Old Freq(Hz) New Freq(Hz) CPU0 CPU3
3501930 200000 200000 0 0
3502040 200000 200000 0 0
3502100 200000 200000 75 16
3502575 200000 200000 0 0
3503025 200000 200000 11 2
3503100 200000 200000 62 14
3503455 200000 200000 1 0
3503930 200000 200000 3 9
3504000 200000 200000 65 15
3504440 200000 200000 1 0

Chanwoo Choi (6):
cpufreq: Add debugfs directory for cpufreq
cpufreq: stats: Add 'load_table' debugfs file to show accumulated data of CPUs
cpufreq: Update governor core to support all governors
cpufreq: performance: Add support to collect CPUs load periodically
cpufreq: powersave: Add support to collect CPUs load periodically
Documentation: cpufreq: load_table: Update load_table debugfs file documentation

Documentation/cpu-freq/cpufreq-stats.txt | 39 ++++-
drivers/cpufreq/Kconfig | 6 +
drivers/cpufreq/cpufreq.c | 61 ++++++++
drivers/cpufreq/cpufreq_governor.c | 37 ++++-
drivers/cpufreq/cpufreq_governor.h | 11 ++
drivers/cpufreq/cpufreq_performance.c | 156 ++++++++++++++++++-
drivers/cpufreq/cpufreq_powersave.c | 158 ++++++++++++++++++-
drivers/cpufreq/cpufreq_stats.c | 256 ++++++++++++++++++++++++++++---
include/linux/cpufreq.h | 7 +
9 files changed, 692 insertions(+), 39 deletions(-)

--
1.8.0



\
 
 \ /
  Last update: 2013-07-05 11:21    [W:0.163 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site