This is the old SliTaz forum - Please use the main forum.slitaz.org

Pentium 4 and cpu_freq troubles
  • latevlatev February 2011
    I hate to restart a topic that's been discussed several times here already, however I'm having a really hard time with the cpu frequency scaling in Slitaz cooking.

    I installed all the p[ackages and kernel modules, all cpu* commands appear to be working ok. In my case the module is p4_clockmod

    The issue is that it appears that no matter what I do the actual cpu frequency /or the governor/ do not change at all.
    I issue echo ondemand > ...scaling governor, but the file doesn't change at all. The cpufreq-set command also executes successfully however my cpu is stuck at GHz. I'm sure it can and does as low as 250MHz when idling because prior to installing Slitaz I was running Debian Lenny and never had an issue with it
    Is it possible that the ondemand support was somehow disabled in the kernel?

    Please advice....anyone

    West:~# uname -a
    Linux NewWest 2.6.37-slitaz #2 SMP Tue Jan 25 02:32:32 CET 2011 i686 GNU/Linux
    root@NewWest:~# cpufreq-set -g ondemand
    root@NewWest:~# cpufreq-info
    cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
    Report errors and bugs to cpufreq@vger.kernel.org, please.
    analyzing CPU 0:
      driver: p4-clockmod
      CPUs which run at the same hardware frequency: 0
      CPUs which need to have their frequency coordinated by software: 0
      maximum transition latency: 10.00 ms.
      hardware limits: 250 MHz - 2.00 GHz
      available frequency steps: 250 MHz, 500 MHz, 750 MHz, 1000 MHz, 1.25 GHz, 1.50 GHz, 1.75 GHz, 2.00 GHz
      available cpufreq governors: ondemand, userspace, performance
      current policy: frequency should be within 250 MHz and 2.00 GHz.
                      The governor "performance" may decide which speed to use
                      within this range.
      current CPU frequency is 2.00 GHz (asserted by call to hardware).
      cpufreq stats: 250 MHz:0.00%, 500 MHz:0.00%, 750 MHz:0.00%, 1000 MHz:0.00%, 1.25 GHz:0.00%, 1.50 GHz:0.00%, 1.75 GHz:0.00%, 2.00 GHz:100.00%
    root@NewWest:~#


  • kultexkultex February 2011
    did you try to 

    modprobe cpufreq_powersave

    before you

    did cpufreq-set -g ondemand






  • mojomojo February 2011
    Confirmed this feature works with Linux slitaz 2.6.37-slitaz #2 SMP Tue
    Jan 25 02:32:32 CET 2011 i686 GNU/Linux with driver: acpi-cpufreq on an E4500
    core2duo with a gigabyte EP45-UD3LR motherboard .  If someone else has a pentium 4 that use the p4-clockmod driver please test and report.


    @latev
    tux@slitaz:~$ zcat /proc/config.gz | grep -i CPU_FREQ_GOV
    CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
    CONFIG_CPU_FREQ_GOV_POWERSAVE=m
    CONFIG_CPU_FREQ_GOV_USERSPACE=y
    CONFIG_CPU_FREQ_GOV_ONDEMAND=y
    CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m

    No modprobe is required for governors with y , built into the kernel.
    Governors with m are installed with linux-cpufreq.tazpkg, modprobe to use.
    root@NewWest:~# cpufreq-info  indicates the built in governors are available:
    available cpufreq governors: ondemand, userspace, performance
    This command:
    root@NewWest:~# cpufreq-set -g ondemand
    Should change this:
    The governor "performance" may decide which speed to use
                      within this range.
    To this:
    The governor "ondemand" may decide which speed to use
                      within this range.

    It's broke,sorry  :(






     
  • kultexkultex February 2011
    @mojo - what is broken?
  • mojomojo February 2011
    @kultex
    No worry :)
    It's works for kultex and mojo ! 
    modprobe cpufreq_powersave if cpufreq-set -g powersave
    CONFIG_CPU_FREQ_GOV_POWERSAVE=m
    No modprobe if cpufreq-set -g ondemand
    CONFIG_CPU_FREQ_GOV_ONDEMAND=y

    tux@slitaz:~$ sudo cpufreq-set -c 0 -g ondemand
    tux@slitaz:~$ sudo cpufreq-set -c 1 -g ondemand
    tux@slitaz:~$ cpufreq-info
    cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
    Report errors and bugs to cpufreq@vger.kernel.org, please.
    analyzing CPU 0:
    driver: acpi-cpufreq
    CPUs which run at the same hardware frequency: 0
    CPUs which need to have their frequency coordinated by software: 0
    maximum transition latency: 160 us.
    hardware limits: 1.20 GHz - 2.20 GHz
    available frequency steps: 2.20 GHz, 1.60 GHz, 1.20 GHz
    available cpufreq governors: ondemand, userspace, performance
    current policy: frequency should be within 1.20 GHz and 2.20 GHz.
    The governor "ondemand" may decide which speed to use
    within this range.
    current CPU frequency is 1.20 GHz.
    cpufreq stats: 2.20 GHz:8.91%, 1.60 GHz:13.25%, 1.20 GHz:77.84% (11)
    analyzing CPU 1:
    driver: acpi-cpufreq
    CPUs which run at the same hardware frequency: 1
    CPUs which need to have their frequency coordinated by software: 1
    maximum transition latency: 160 us.
    hardware limits: 1.20 GHz - 2.20 GHz
    available frequency steps: 2.20 GHz, 1.60 GHz, 1.20 GHz
    available cpufreq governors: ondemand, userspace, performance
    current policy: frequency should be within 1.20 GHz and 2.20 GHz.
    The governor "ondemand" may decide which speed to use
    within this range.
    current CPU frequency is 1.20 GHz.
    cpufreq stats: 2.20 GHz:9.19%, 1.60 GHz:11.62%, 1.20 GHz:79.20% (10)
    tux@slitaz:~$

    mojo :0) works
    latev :O( broke
    It should work for everybody so it's broke ;)
  • latevlatev February 2011
    Thanks for everyone who took the time to respond!
    And now comes the bad news - I did some research and stumbled across this post:
    https://bugs.launchpad.net/ubuntu/+source/linux/+bug/432706

    which seems to be the case here too, so it is not a distro issue, but rather a kernel issue. Nonetheless I believe it could be easily fixed in the SliTaz distro as it applies some kernel distro-specific patches.

    I also must express my deep disappointment in this decision to remove the ondemand governor functionality in the kernel.

    Here's some more info about my case:
    root@NewWest:~# zcat /proc/config.gz |grep -i CPU_FRE
    CONFIG_CPU_FREQ=y
    CONFIG_CPU_FREQ_TABLE=y
    # CONFIG_CPU_FREQ_DEBUG is not set
    CONFIG_CPU_FREQ_STAT=y
    # CONFIG_CPU_FREQ_STAT_DETAILS is not set
    CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
    # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
    # CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
    # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
    CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
    CONFIG_CPU_FREQ_GOV_POWERSAVE=m
    CONFIG_CPU_FREQ_GOV_USERSPACE=y
    CONFIG_CPU_FREQ_GOV_ONDEMAND=y
    CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m

    Machine: Gateway, Intel Pentium 4 @ 2GHz, 2x512 RAM, NVidia GeForce2 MX/ MX 400
     
    I couldn't get the flash plugin working in cooking, so I think I'm gonna revert back to the 3.0 stable version and see if I can get things up and running there, before I give up the distro altogether

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

SliTaz Social