You are not logged in.

#1 2009-09-01 20:58:03

johnpatcher
Member
Registered: 2009-08-23
Posts: 70

[SOLVED] Cpu frequency is set to maximum, although there is no load

I have a strange problem using cpufreq-utils.

I've set it up and after a fresh boot it works quite good, scaling the CPU frequency to my needs, but after it runs for a time, it scales the cpu frequency to the available maximum, although there is no load.

Here is the output of "cpufreq-info":

cpufrequtils 005: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 800 MHz - 2.53 GHz
  available frequency steps: 2.53 GHz, 2.53 GHz, 1.60 GHz, 800 MHz
  available cpufreq governors: ondemand, performance
  current policy: frequency should be within 800 MHz and 2.53 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 2.53 GHz (asserted by call to hardware).
analyzing CPU 1:
  driver: acpi-cpufreq
  CPUs which need to switch frequency at the same time: 1
  hardware limits: 800 MHz - 2.53 GHz
  available frequency steps: 2.53 GHz, 2.53 GHz, 1.60 GHz, 800 MHz
  available cpufreq governors: ondemand, performance
  current policy: frequency should be within 800 MHz and 2.53 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 2.53 GHz (asserted by call to hardware).

The following is the output of "top":

top - 22:53:17 up 10 min,  1 user,  load average: 0.3, 0.06, 0.01
Tasks:  76 total,   1 running,  75 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.9%us,  4.9%sy,  0.0%ni, 90.8%id,  3.4%wa,  0.1%hi,  0.0%si,  0.0%st
Mem:   4038980k total,   100680k used,  3938300k free,    10600k buffers
Swap:  4104568k total,        0k used,  4104568k free,    34864k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                      
    1 root      20   0  3796  628  540 S    0  0.0   0:00.59 init                                         
    2 root      15  -5     0    0    0 S    0  0.0   0:00.00 kthreadd                                     
    3 root      RT  -5     0    0    0 S    0  0.0   0:00.00 migration/0                                  
    4 root      15  -5     0    0    0 S    0  0.0   0:00.00 ksoftirqd/0                                  
    5 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/0                                   
    6 root      RT  -5     0    0    0 S    0  0.0   0:00.00 migration/1                                  
    7 root      15  -5     0    0    0 S    0  0.0   0:00.00 ksoftirqd/1                                  
    8 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/1                                   
    9 root      15  -5     0    0    0 S    0  0.0   0:00.00 events/0                                     
   10 root      15  -5     0    0    0 S    0  0.0   0:00.00 events/1                                     
   11 root      15  -5     0    0    0 S    0  0.0   0:00.00 khelper                                      
   12 root      15  -5     0    0    0 S    0  0.0   0:00.00 async/mgr                                    
   13 root      15  -5     0    0    0 S    0  0.0   0:00.00 kblockd/0                                    
   14 root      15  -5     0    0    0 S    0  0.0   0:00.00 kblockd/1                                    
   15 root      15  -5     0    0    0 S    0  0.0   0:00.00 kacpid                                       
   16 root      15  -5     0    0    0 S    0  0.0   0:00.00 kacpi_notify                                 
   17 root      15  -5     0    0    0 S    0  0.0   0:00.18 kseriod                                      
   18 root      20   0     0    0    0 S    0  0.0   0:00.00 khungtaskd                                   
   19 root      20   0     0    0    0 S    0  0.0   0:00.00 pdflush                                      
   20 root      20   0     0    0    0 S    0  0.0   0:00.00 pdflush                                      
   21 root      15  -5     0    0    0 S    0  0.0   0:00.00 kswapd0                                      
   22 root      15  -5     0    0    0 S    0  0.0   0:00.00 aio/0                                        
   23 root      15  -5     0    0    0 S    0  0.0   0:00.00 aio/1                                        
   24 root      15  -5     0    0    0 S    0  0.0   0:00.00 crypto/0                                     
   25 root      15  -5     0    0    0 S    0  0.0   0:00.00 crypto/1                                     
  458 root      15  -5     0    0    0 S    0  0.0   0:00.00 ata/0                                        
  460 root      15  -5     0    0    0 S    0  0.0   0:00.00 ata/1                                        
  461 root      15  -5     0    0    0 S    0  0.0   0:00.00 ata_aux                                      
  463 root      15  -5     0    0    0 S    0  0.0   0:00.01 scsi_eh_0                                    
  464 root      15  -5     0    0    0 S    0  0.0   0:00.01 scsi_eh_1                                    
  465 root      15  -5     0    0    0 S    0  0.0   0:00.00 scsi_eh_2                                    
  466 root      15  -5     0    0    0 S    0  0.0   0:00.00 scsi_eh_3                                    
  535 root      15  -5     0    0    0 S    0  0.0   0:00.00 kjournald2                                   
  560 root      16  -4  6236  844  408 S    0  0.0   0:00.01 udevd                                        
  741 root      18  -2  6236  796  372 S    0  0.0   0:00.00 udevd                                        
  742 root      18  -2  6236  796  372 S    0  0.0   0:00.00 udevd                                        
  803 root      15  -5     0    0    0 S    0  0.0   0:00.00 khpsbpkt                                     
  812 root      15  -5     0    0    0 S    0  0.0   0:00.00 ksuspend_usbd                                
  828 root      15  -5     0    0    0 S    0  0.0   0:00.00 khubd                                        
  872 root      15  -5     0    0    0 S    0  0.0   0:00.00 knodemgrd_0                                  
  873 root      15  -5     0    0    0 S    0  0.0   0:00.00 kpsmoused                                    
  874 root      15  -5     0    0    0 S    0  0.0   0:00.00 kmmcd                                        
  879 root      15  -5     0    0    0 S    0  0.0   0:00.00 iwlagn                                       
  881 root      15  -5     0    0    0 S    0  0.0   0:00.00 phy0                                         
  889 root      15  -5     0    0    0 S    0  0.0   0:00.00 kondemand/0                                  
  890 root      15  -5     0    0    0 S    0  0.0   0:00.00 kondemand/1                                  
  893 root      15  -5     0    0    0 S    0  0.0   0:00.00 hd-audio0                                    
  897 root      15  -5     0    0    0 S    0  0.0   0:00.00 scsi_eh_4                                    
  898 root      15  -5     0    0    0 S    0  0.0   0:00.01 usb-storage                                  
 1073 root      15  -5     0    0    0 S    0  0.0   0:00.00 kjournald2                                   
 1091 root      15  -5     0    0    0 S    0  0.0   0:00.00 bluetooth                                    
 1096 root      15  -5     0    0    0 S    0  0.0   0:00.00 usbhid_resumer                               
 1351 root      20   0 29732  620  288 S    0  0.0   0:00.00 syslog-ng                                    
 1352 root      20   0 32092 2060 1448 S    0  0.1   0:00.02 syslog-ng                                    
 1363 root      20   0  3788  580  480 S    0  0.0   0:00.00 acpid                                        
 1385 dbus      20   0  8388  760  552 S    0  0.0   0:00.01 dbus-daemon                                  
 1395 hal       20   0 27444 4380 3004 S    0  0.1   0:00.30 hald                                         
 1398 root      20   0 96204 2248 1452 S    0  0.1   0:00.00 console-kit-dae                              
 1399 root      20   0 15664 1216  992 S    0  0.0   0:00.00 hald-runner                                  
 1490 root      20   0 17780 1152  992 S    0  0.0   0:00.02 hald-addon-inpu                              
 1501 root      20   0 17772 1108  968 S    0  0.0   0:00.00 hald-addon-rfki                              
 1515 root      20   0 17772 1084  952 S    0  0.0   0:00.00 hald-addon-gene                              
 1528 root      20   0 17780 1136  984 S    0  0.0   0:00.00 hald-addon-stor                              
 1529 root      20   0 17788 1100  956 S    0  0.0   0:00.00 hald-addon-cpuf                              
 1530 hal       20   0 15372 1012  876 S    0  0.0   0:00.00 hald-addon-acpi                              
 1545 root      20   0 12392  644  456 S    0  0.0   0:00.00 rpcbind                                      
 1578 root      20   0  5876  608  516 S    0  0.0   0:00.00 crond                                        
 1594 root      20   0 43416 1228  968 S    0  0.0   0:00.09 login                                        
 1595 root      20   0  3792  588  504 S    0  0.0   0:00.00 agetty                                       
 1596 root      20   0  3792  588  504 S    0  0.0   0:00.00 agetty                                       
 1597 root      20   0  3792  588  504 S    0  0.0   0:00.00 agetty                                       
 1598 root      20   0  3792  584  504 S    0  0.0   0:00.00 agetty                                       
 1599 root      20   0  3792  584  504 S    0  0.0   0:00.00 agetty                                       
 1608 root      20   0 17780 1124  976 S    0  0.0   0:00.00 hald-addon-stor                              
 1613 root      20   0 20024 3188 1608 S    0  0.1   0:01.04 bash                                         
 1661 root      20   0 10660 1024  788 R    0  0.0   0:00.00 top

I really don't understand why it doesn't throttle the cpu, are there any options for that?

Best regards
johnpatcher

Last edited by johnpatcher (2009-09-06 03:01:01)

Offline

#2 2009-09-01 23:03:29

apollokk
Member
From: Please delete me!
Registered: 2009-03-23
Posts: 157
Website

Re: [SOLVED] Cpu frequency is set to maximum, although there is no load


/me wants you to detele this account... please delete it.

Offline

#3 2009-09-02 12:50:10

johnpatcher
Member
Registered: 2009-08-23
Posts: 70

Re: [SOLVED] Cpu frequency is set to maximum, although there is no load

What excactly am I intended to do? Haven't read anything new?

Last edited by johnpatcher (2009-09-02 12:51:48)

Offline

#4 2009-09-02 13:13:23

blasse
Member
From: Poland
Registered: 2008-04-24
Posts: 303

Re: [SOLVED] Cpu frequency is set to maximum, although there is no load

I would suggest trying userspace governor and trying if changing CPU speed will work if set "by hand" wink


Proud ex-maintainer of firefox-pgo

Offline

#5 2009-09-03 16:43:59

uwinkelvos
Member
Registered: 2009-06-07
Posts: 129

Re: [SOLVED] Cpu frequency is set to maximum, although there is no load

Did i get this right: after a fresh restart cpufreq-info tells you, that the current frequency is 800 Mhz and some time later without starting any other apps, the cur freq rises to 2.53 Ghz?

you might try something like this:

(while true; do echo $(date); sudo cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq; sleep 10; done) > freq.log

Last edited by uwinkelvos (2009-09-03 17:01:02)

Offline

#6 2009-09-06 03:00:47

johnpatcher
Member
Registered: 2009-08-23
Posts: 70

Re: [SOLVED] Cpu frequency is set to maximum, although there is no load

uwinkelvos wrote:

Did i get this right: after a fresh restart cpufreq-info tells you, that the current frequency is 800 Mhz and some time later without starting any other apps, the cur freq rises to 2.53 Ghz?

you might try something like this:

(while true; do echo $(date); sudo cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq; sleep 10; done) > freq.log

Yeah, you got it right. I think that it is the framebuffer, I have increased it (to 1280x800, 24 bit), because the cpu-frequency is "just" set to maximum when my screen is full, if I clear it, then it stucks at 800 MHz. With the X server loaded I have 800 MHz also.

My conclusion is that the (big) framebuffer causes that much cpu load.

Offline

Board footer

Powered by FluxBB