On Thursday 13 August 2009 13:10:57 Oliver Maurhart wrote: > Hi, > > I've played around and studied but I can't figure it out. > > I want to set my CPU to hw-max but it always gets ignored. What's wrong? > > Some Infos: > > # uname -a > Linux demandred 2.6.30-gentoo-r4 #10 SMP PREEMPT Thu Aug 13 12:16:26 CEST 2009 > i686 Intel(R) Pentium(R) M processor 2.13GHz GenuineIntel GNU/Linux > > # cat /proc/cpuinfo > processor : 0 > vendor_id : GenuineIntel > cpu family : 6 > model : 13 > model name : Intel(R) Pentium(R) M processor 2.13GHz > stepping : 8 > cpu MHz : 1333.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 clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx up bts est tm2 > bogomips : 2658.96 > clflush size : 64 > power management: > > > # cpufreq-info -m > cpufrequtils 005: cpufreq-info (C) Dominik Brodowski 2004-2006 > Report errors and bugs to cpufreq@xxxxxxxxxxxxxxx, please. > analyzing CPU 0: > driver: acpi-cpufreq > CPUs which need to switch frequency at the same time: 0 > hardware limits: 800 MHz - 2.13 GHz > available frequency steps: 2.13 GHz, 1.87 GHz, 1.60 GHz, 1.33 GHz, 1.07 GHz, > 800 MHz > available cpufreq governors: conservative, ondemand, userspace, powersave, > performance > current policy: frequency should be within 800 MHz and 1.33 GHz. > The governor "userspace" may decide which speed to use > within this range. > current CPU frequency is 1.33 GHz (asserted by call to hardware). > cpufreq stats: 2.13 GHz:0.13%, 1.87 GHz:0.00%, 1.60 GHz:0.00%, 1.33 > GHz:58.49%, 1.07 GHz:0.05%, 800 MHz:41.33% (585) > > > # cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies > 2133000 1867000 1600000 1333000 1067000 800000 > > > # cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq > 800000 > > Ohhh ... "someone" set the CPU speed down to 800 kHz in the meantime. Why? > Who? Governor is "userspace" ... > > # echo "2133000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq > # cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq > 1333000 > > > I can't get the MAX frequency set to 2133000 though it's the upper HW- limit. > Therefore I never get 2133000. The computer feels slow and clumsy (yes, it's > an old one ... but most of the time I'm running 0.8 GHz instead of 2.13 GHz) > :( > > > What's wrong? Some info missing? It looks like your machine got limited by because it run too hot and exceeded a passive trip point. You can check that through: cat /proc/acpi/thermal/*/trip_points cat /proc/acpi/thermal/*/temperature or somewhere in /sys where the generic thermal driver puts its stuff to. It could also be that BIOS limited the max frequency. I recently posted a patch on this list to be able to detect that: [PATCH 3/3] ACPI/CPUFREQ: Introduce hw_limit per cpu cpufreq sysfs interface Then beside: cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq (which should already be limited through userspace, generic thermal driver or BIOS) you have: cat /sys/devices/system/cpu/cpu*/cpufreq/hw_limit If this shows the limited freq, you can be sure that the BIOS notified the OS to restrict the frequency (via ACPI _PPC call). In either case you should watch the temperature and/or go through your BIOS settings (or do a BIOS upgrade). If it's the temperature you might want to clean your fans. Thomas -- To unsubscribe from this list: send the line "unsubscribe cpufreq" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html