After upgrade my laptop, I discovered a low performance on it.
The laptop is a 2,73GHz Intel centrino and from some kernels versions to now, it had a good performance, the cpu scaling worked fine.
Now, I discover that forcing in /etc/sysconfig/cpuspeed the governors and/or max/min speeds, it don't want to run more quickly.
The laptop boots fine with the correct speed (usual speed), but when the init scripts run the service cpuspeed, the performance goes low: Only wants 800MHz!!
Yes, I played with the documentation and the values on it, but the problem began before I touch them. I discovered the problem after upgrade the kernel (some weeks ago).
Its very curious that if I power off/on or reboot the laptop, the next boot is with low speed, but if I power off, wait for 10 minutes, and power on again, the laptop boots at normal speed but when cpuspeed service goes up, the speed goes to low.
I can't change the speed using gnome or manually writing to /sys/devices/cpu/cpu0/ system files.
Has anybody got any problem as this? How to solve or work around (running an old kernel is an option)? Has any relationship with gnome cpuspeed monitor or any gnome component?
Thanks
Regards
On Tue, Dec 16, 2008 at 12:31 PM, ArcosCom Linux User linux@arcoscom.com wrote:
After upgrade my laptop, I discovered a low performance on it.
The laptop is a 2,73GHz Intel centrino and from some kernels versions to now, it had a good performance, the cpu scaling worked fine.
Now, I discover that forcing in /etc/sysconfig/cpuspeed the governors and/or max/min speeds, it don't want to run more quickly.
Have you tried turning cpuspeed off?
mhr
GNOME will have any problem if I "chkconfig --level 345 cpuspeed off"?
Thanks
El Mar, 16 de Diciembre de 2008, 22:27, MHR escribió:
On Tue, Dec 16, 2008 at 12:31 PM, ArcosCom Linux User linux@arcoscom.com wrote:
After upgrade my laptop, I discovered a low performance on it.
The laptop is a 2,73GHz Intel centrino and from some kernels versions to now, it had a good performance, the cpu scaling worked fine.
Now, I discover that forcing in /etc/sysconfig/cpuspeed the governors and/or max/min speeds, it don't want to run more quickly.
Have you tried turning cpuspeed off?
mhr _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
ArcosCom Linux User wrote on Tue, 16 Dec 2008 23:33:36 +0100 (CET):
GNOME will have any problem if I "chkconfig --level 345 cpuspeed off"?
why?
"chkconfig cpuspeed off" suffices
Kai
I've seen this on my laptop also.
Its an older thinkpad t20. Its always running slower by 200MHZ or something close to that. I've even swapped the cpu to a newer faster version.
Ensured cpuspeed was turned off, and still the issue persisted. Havent loaded it with another os to see if the issue stands figured I'm a Cent guy.. I'll deal with it.
Just as a note. It did it prior to me upgrading to 5.2 from 4.7.
On Tue, 2008-12-16 at 13:27 -0800, MHR wrote:
On Tue, Dec 16, 2008 at 12:31 PM, ArcosCom Linux User linux@arcoscom.com wrote:
After upgrade my laptop, I discovered a low performance on it.
The laptop is a 2,73GHz Intel centrino and from some kernels versions to now, it had a good performance, the cpu scaling worked fine.
Now, I discover that forcing in /etc/sysconfig/cpuspeed the governors and/or max/min speeds, it don't want to run more quickly.
Have you tried turning cpuspeed off?
mhr _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
ArcosCom Linux User wrote on Tue, 16 Dec 2008 21:31:30 +0100 (CET):
The laptop boots fine with the correct speed (usual speed), but when the init scripts run the service cpuspeed, the performance goes low: Only wants 800MHz!!
sounds pretty much like it's working as it should. It goes down went it doesn't need to run that fast. That's the normal on-demand governor. If you want to have full-speed all the time then stop the cpuspeed service, it will then use the performance governor.
Kai
Ok, but is not working fine.
The last try: 1) Power off the laptop along 2/3 hours. 2) Power on and log into gnome. 3) The cpuspeed monitor shows that all is working fine. 4) Some minutes after, the speed goes down to 800 MHz and no more wants to grow up. I can't change to force performance or using userspace and select the speed.
Any help more about?
If I launch any heavy compilation (as kernel compilation), the speed don't want to grow up. Really is working fine under these circumstances with the performance governor selected?
Regards
El Mie, 17 de Diciembre de 2008, 0:31, Kai Schaetzl escribió:
ArcosCom Linux User wrote on Tue, 16 Dec 2008 21:31:30 +0100 (CET):
The laptop boots fine with the correct speed (usual speed), but when the init scripts run the service cpuspeed, the performance goes low: Only wants 800MHz!!
sounds pretty much like it's working as it should. It goes down went it doesn't need to run that fast. That's the normal on-demand governor. If you want to have full-speed all the time then stop the cpuspeed service, it will then use the performance governor.
Kai
-- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Wed, Dec 17, 2008 at 3:00 PM, ArcosCom Linux User linux@arcoscom.com wrote:
Ok, but is not working fine.
The last try:
- Power off the laptop along 2/3 hours.
- Power on and log into gnome.
- The cpuspeed monitor shows that all is working fine.
- Some minutes after, the speed goes down to 800 MHz and no more wants
to grow up. I can't change to force performance or using userspace and select the speed.
Any help more about?
If I launch any heavy compilation (as kernel compilation), the speed don't want to grow up. Really is working fine under these circumstances with the performance governor selected?
First, please do not top post in this forum / on this list.
Second, try this:
dd if=/dev/zero of=/dev/null <some huge number of blocks>
and see if that drives your cpuspeed up.
BTW, how are you checking the cpuspeed? Are you looking at /proc/cpuinfo?
HTH
mhr
The same as before, instead compile I do the dd comand and see the /proc/cpuinfo info at the same time the cpuspeed monitor under gnome shows the same as cpuinfo: 800Mhz.
Another way to go?
Thanks
El Jue, 18 de Diciembre de 2008, 0:20, MHR escribió:
On Wed, Dec 17, 2008 at 3:00 PM, ArcosCom Linux User linux@arcoscom.com wrote:
Ok, but is not working fine.
The last try:
- Power off the laptop along 2/3 hours.
- Power on and log into gnome.
- The cpuspeed monitor shows that all is working fine.
- Some minutes after, the speed goes down to 800 MHz and no more
wants to grow up. I can't change to force performance or using userspace and select the speed.
Any help more about?
If I launch any heavy compilation (as kernel compilation), the speed don't want to grow up. Really is working fine under these circumstances with the performance governor selected?
First, please do not top post in this forum / on this list.
Second, try this:
dd if=/dev/zero of=/dev/null <some huge number of blocks>
and see if that drives your cpuspeed up.
BTW, how are you checking the cpuspeed? Are you looking at /proc/cpuinfo?
HTH
mhr _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Wed, Dec 17, 2008 at 4:09 PM, ArcosCom Linux User linux@arcoscom.com wrote:
The same as before, instead compile I do the dd comand and see the /proc/cpuinfo info at the same time the cpuspeed monitor under gnome shows the same as cpuinfo: 800Mhz.
Another way to go?
Can you NOT top post here??
Let me try again:
While the dd command is running, what is the content of /proc/cpuinfo?
Thank you.
mhr
El Jue, 18 de Diciembre de 2008, 1:45, MHR escribió:
On Wed, Dec 17, 2008 at 4:09 PM, ArcosCom Linux User linux@arcoscom.com wrote:
The same as before, instead compile I do the dd comand and see the /proc/cpuinfo info at the same time the cpuspeed monitor under gnome shows the same as cpuinfo: 800Mhz.
Another way to go?
Can you NOT top post here??
Sorry for my poor english: What is the meaning of "top post"? (spanish speaker here).
Let me try again:
While the dd command is running, what is the content of /proc/cpuinfo?
Please, don't think that I don't know how to run the commands and the info. To do that I opened 2 gnome-terminal windows and while the dd command was running I run the "cat /proc/cpuinfo" in the other window and see the "cpu MHz" value to write here.
But, to allow you to convince, here is it (and more interesting values): # cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 13 model name : Intel(R) Pentium(R) M processor 1.73GHz stepping : 8 cpu MHz : 800.000 cache size : 2048 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx up est tm2 bogomips : 1597.32
# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq 800000
# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq 800000
# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq 1733000
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies 1733000 1333000 1067000 800000
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver centrino
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors userspace performance
(when I configure "ondemand" in /etc/sysconfig/cpuspeed, above appears "ondemand" governor too, but the problem persists).
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor userspace
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 800000
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 800000
(and I think this last value is the problem because I can't change it with echo "1733000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq)
And while the dd command were running I tried to put performance governor too into scaling_governor.
I have to insist again, I think that is something that I have misconfigured or is not working fine in gnome that do something and breaks the cpuspeed daemon or have any type of incompatibility with it, because, as I can remember, the cpuspeed were working fine.
I'll try the new 2.6-92.1.22 kernel too, but in the new kernel changelog not appears to be any type of fix that affect to this.
Thank you.
Thanks.
mhr _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
ArcosCom Linux User wrote:
I'll try the new 2.6-92.1.22 kernel too, but in the new kernel changelog not appears to be any type of fix that affect to this.
I have seen the same problem on RHEL 5.2 on a ThinkPad T41 too... cpuspeed stuck at the low-cpu setting. Manually kicking it to something using the GUI widget or through /proc solves the problem, until the next reboot at least.
Don't have RHEL 5.2 on that machine anymore to test.
On Thu, 2008-12-18 at 08:06 +0100, ArcosCom Linux User wrote: ...
Sorry for my poor english: What is the meaning of "top post"? (spanish speaker here).
http://en.wikipedia.org/wiki/Posting_style
There's probably a comparable es... page.
Just google 'netiquette top-post' (no quotes) for much more like...
http://www.w3.org/QA/2008/06/netiquette-w3c-mailing-list.html http://www.fozzilinymoo.org/dispensation/netiquette.html
Phil
ArcosCom Linux User wrote on Thu, 18 Dec 2008 00:00:29 +0100 (CET):
The last try:
- Power off the laptop along 2/3 hours.
- Power on and log into gnome.
- The cpuspeed monitor shows that all is working fine.
I don't know what this monitor is. There's a cpuspeed service script. If enabled it will load the necessary kernel modules and the configured governor. Config is in /etc/sysconfig/cpuspeed. You can also check the script yourself to see what it does. It may very well be that it thinks that your CPU has a flaw that stops it from correctly working with frequency scaling. I know that the script has checks for AMD CPUs in it for instance.
If there is some cpuspeed GUI monitor, this has nothing to do with the cpuspeed service script. If cpuspeed is disabled the performance governor should be on. As I see you know where to check this. So, as I said earlier, shut it off (chkconfig cpuspeed off), reboot, and check the values. Also, if you think that this has something to do with Gnome then you should *not* boot in the GUI and see if you get better results. If that doesn't help there's more likely a problem with the driver. Have you checked that it is loaded?
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 800000
(and I think this last value is the problem because I can't change it with echo "1733000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq)
I tend to agree. That's why you want to check this value without gnomem without cpuspeed and also right after booting up (as you say frequency scales down after a few minutes, so theoretically there should be a higher value in the beginning and there might indeed be a problem in the driver that stops it from scaling up again). It's also possible that the algorithm for calculating the speedup is doing something wrong, so it doesn't scale up again, because it thinks it's not necessary. You could set the UP_THRESHOLD= to something very low like 5
- Some minutes after, the speed goes down to 800 MHz and no more wants
to grow up. I can't change to force performance or using userspace and select the speed.
Any help more about?
If I launch any heavy compilation (as kernel compilation), the speed don't want to grow up. Really is working fine under these circumstances with the performance governor selected?
No, but this wasn't obvious from your earlier posting. As I said: did you stop cpuspeed? This is not a xen kernel, isn't it?
About the top posting/qoting etc.: The point is to make your postings as readable for others as possible. If you quote what you really answer to and then answer that and then quote the next part you answer and answer that it's much easier to follow for the reader and also much easier for *you* to answer as you cannot easily overlook questions if you go thru one by one. And everything that you don't answer (including the signature etc.) simply doesn't belong in the quote and is omitted. You can take this posting as an example.
Kai
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Kai Schaetzl Sent: Thursday, December 18, 2008 7:18 AM To: centos@centos.org Subject: Re: [CentOS] cpuspeed problems with 5.2 and 2.6.18-92.1.18 kernelrevision
ArcosCom Linux User wrote on Thu, 18 Dec 2008 00:00:29 +0100 (CET):
The last try:
- Power off the laptop along 2/3 hours.
- Power on and log into gnome.
- The cpuspeed monitor shows that all is working fine.
I don't know what this monitor is. There's a cpuspeed service script. If enabled it will load the necessary kernel modules and the configured governor. Config is in /etc/sysconfig/cpuspeed. You can also check the script yourself to see what it does. It may very well be that it thinks that your CPU has a flaw that stops it from correctly working with frequency scaling. I know that the script has checks for AMD CPUs in it for instance.
If there is some cpuspeed GUI monitor, this has nothing to do with the cpuspeed service script. If cpuspeed is disabled the performance governor should be on. As I see you know where to check this. So, as I said earlier, shut it off (chkconfig cpuspeed off), reboot, and check the values. Also, if you think that this has something to do with Gnome then you should *not* boot in the GUI and see if you get better results. If that doesn't help there's more likely a problem with the driver. Have you checked that it is loaded?
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 800000
(and I think this last value is the problem because I can't
change it with
echo "1733000" >
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq)
I tend to agree. That's why you want to check this value without gnomem without cpuspeed and also right after booting up (as you say frequency scales down after a few minutes, so theoretically there should be a higher value in the beginning and there might indeed be a problem in the driver that stops it from scaling up again). It's also possible that the algorithm for calculating the speedup is doing something wrong, so it doesn't scale up again, because it thinks it's not necessary. You could set the UP_THRESHOLD= to something very low like 5
- Some minutes after, the speed goes down to 800 MHz
and no more wants
to grow up. I can't change to force performance or using
userspace and
select the speed.
Any help more about?
If I launch any heavy compilation (as kernel compilation),
the speed don't
want to grow up. Really is working fine under these
circumstances with the
performance governor selected?
No, but this wasn't obvious from your earlier posting. As I said: did you stop cpuspeed? This is not a xen kernel, isn't it?
About the top posting/qoting etc.: The point is to make your postings as readable for others as possible. If you quote what you really answer to and then answer that and then quote the next part you answer and answer that it's much easier to follow for the reader and also much easier for *you* to answer as you cannot easily overlook questions if you go thru one by one. And everything that you don't answer (including the signature etc.) simply doesn't belong in the quote and is omitted. You can take this posting as an example.
------------------- Kai is right about the cpuspeed deamon. If you stopped the service it should and will run full speed. But there is a CATCH "dynamic cpu speed features". This is in your BIOS Settings thay need to be disabled. Most all Mother Boards that Supports Intel Centrino has it. Check that out.
JohnStanley