Questions on userspace cpu freq governor for linux-2.6-tip

From: Luke Gong
Date: Sun Apr 05 2009 - 02:20:32 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/