lkml.org 
[lkml]   [2009]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectQuestions on userspace cpu freq governor for linux-2.6-tip
From
Hey,

I have compiled the latest -tip kernel (2.6.29-tip). I enabled
userspace governor for cpu freq scaling. When I am running this new
kernel with userspace governor, I found something strange. At first, I
set the cpu freq scaling governor to be userspace and set all the
cores to run at the lowest speed. But when the machine is busy, I
found the cpu speed increased and would not stay at the level set by
the userspace governor. In the kernels other than this -tip one, I
never saw this before. I am wondering if I have missed something or it
is a bug for linux -tip kernel.

Here is the snapshot:

[root@cic112 ~]# cat /sys/devices/system/cpu/cpu0/
cpufreq/scaling_governor
userspace
[root@cic112 ~]# echo 2000000 >
/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
[root@cic112 ~]# cat
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
2000000
***********************************
Then I start to run a cpu-intensive workload, now the speed increases.
***********************************
[root@cic112 ~]# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
3000000

I am using a server with 2 Xeon5450 Quad core with cpu freq from 2GHz
to 3GHz. Any comment is welcome and appreciated to be CCed to me.

Thanks.

--
Luke


\
 
 \ /
  Last update: 2009-04-05 08:23    [W:0.024 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site