LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   cpu frequency concerns (https://www.linuxquestions.org/questions/slackware-14/cpu-frequency-concerns-675425/)

mrclisdue 10-09-2008 11:56 PM

cpu frequency concerns
 
Toshiba Satellite M70 -DL4

cat /proc/cpuinfo:

Code:

processor        : 0
vendor_id        : GenuineIntel
cpu family        : 6
model                : 13
model name        : Intel(R) Pentium(R) M processor 1.86GHz
stepping        : 8
cpu MHz                : 600.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 sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss tm pbe up bts est tm2
bogomips        : 1598.06
clflush size        : 64

cpufreq-info:

Code:

driver: p4-clockmod
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 75.0 MHz - 600 MHz
  available frequency steps: 75.0 MHz, 150 MHz, 225 MHz, 300 MHz, 375 MHz, 450 MHz, 525 MHz, 600 MHz
  available cpufreq governors: ondemand, performance, powersave, userspace
  current policy: frequency should be within 75.0 MHz and 600 MHz.
                  The governor "userspace" may decide which speed to use
                  within this range.
  current CPU frequency is 600 MHz

I'm very green when it comes to this aspect of computing.
What do I need to do in order to have the kernel recognize and operate with the correct cpu frequency?

thank you,

nigelc 10-10-2008 02:19 AM

Hello,
It's a bug with cat /proc/cpuinfo
It even does it with lots of different distros/ kernel versions
My fedora does it.


Code:

bogomips        : 1598.06
clflush size        : 64

the bogomips are probably closer to go on.
If you search for it lots of other people have had similar findings.

mrclisdue 10-10-2008 05:46 AM

thank you kindly

bassmadrigal 10-10-2008 07:28 AM

Mine shows up properly...

Code:

processor      : 0
vendor_id      : GenuineIntel
cpu family      : 6
model          : 13
model name      : Intel(R) Pentium(R) M processor 1.60GHz
stepping        : 6
cpu MHz        : 1600.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 mce cx8 sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss tm pbe up bts est tm2
bogomips        : 3191.83
clflush size    : 64

Code:

cpufrequtils 003: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to cpufreq@lists.linux.org.uk, please.
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 600 MHz - 1.60 GHz
  available frequency steps: 1.60 GHz, 1.40 GHz, 1.20 GHz, 1000 MHz, 800 MHz, 600 MHz
  available cpufreq governors: performance, ondemand, powersave, userspace
  current policy: frequency should be within 600 MHz and 1.60 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 600 MHz.

I just have these in my rc.local file

Code:

/sbin/modprobe acpi_cpufreq
/sbin/modprobe cpufreq_powersave
/sbin/modprobe cpufreq_ondemand
/sbin/modprobe cpufreq_performance

Also I have cpufreq-daemon running which allows me to set the speed based on certain power status.

mrclisdue 10-10-2008 06:02 PM

Thanks all for your input. As usual, your contributions have pointed me in the right direction.

I was getting a fatal error when attempting to load the acpi_cpufreq module, because the p4-clockmod was being loaded. After blacklisting that module, I was able to load acpi_cpufreq.

Secondly, my bios was incorrectly set to allow frequency scaling, so I changed that. Hence:

cat /proc/cpuinfo:

Code:

processor        : 0
vendor_id        : GenuineIntel
cpu family        : 6
model                : 13
model name        : Intel(R) Pentium(R) M processor 1.86GHz
stepping        : 8
cpu MHz                : 1867.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 sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss tm pbe up bts est tm2
bogomips        : 3727.92
clflush size        : 64

and cpufreq-info:

Code:

driver: acpi-cpufreq
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 800 MHz - 1.87 GHz
  available frequency steps: 1.87 GHz, 1.60 GHz, 1.33 GHz, 1.07 GHz, 800 MHz
  available cpufreq governors: ondemand, performance, powersave, userspace
  current policy: frequency should be within 800 MHz and 1.87 GHz.
                  The governor "userspace" may decide which speed to use
                  within this range.
  current CPU frequency is 1.87 GHz

cheers,

bassmadrigal 10-10-2008 06:15 PM

One thing I can highly recommend doing is building cpufreq-daemon. This has been extremely beneficial in saving my battery life. You basically set the config on how you want it to scale your processor at various power stages. ie on mine, on AC min and max are set to 1.6GHz, from 100%-50% on the battery it will sit at 600MHz unless something needs the proc, then it will bump it up the various levels up to 1.6GHz, from 25%-50% it will only go up to 1GHz, and anything below that will stay at the 600MHz range.

You have even more options than I covered here, as you can also specify the userspace governor (ie. performance, ondemand, etc).

But I am glad you got it squared away. It took me forever to get this working in 10.2 and it has been getting ever easier with each slack release. Pretty soon, I will just have to carry over my conf file and not have to build anything.


All times are GMT -5. The time now is 05:46 PM.