cpufreq pb

General conversations about MIB project
Forum rules
Image
Before you post, please read forum rules:
Software requests - How to
Tag [SOLVED] in topics
User avatar
promeneur
Utente senior
Utente senior
Posts: 547
Joined: 6 February 2009, 17:47
ROSA: -
OpenMandriva: 2010.3 i586
Kernel: 3.5.7 nrj dsktp pae
Desktop: MIB kde 4.8.4
country: France

cpufreq pb

Post by promeneur »

with all mib kernel nrj pae desktop cpufreq-info says profile list is users,performance.

but the pb is : the profile list must be powersave, conservative, ondemand, users,
performance because :
- cool and quiet feature is enable in the bios for my amd x2 64 cpu
- with old kernel as mandriva 2.6.33.7 desktop the profile list is powersave,
ondemand, conservative, users, performance

i assume something is not well set in the kernel source settings (before
compilation)
i assume in the kernel source settings powersave, conservative and ondemand are not activated

what do you think of this :

[root@localhost ~]# zgrep CPU_FREQ /proc/config.gz
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=m
CONFIG_CPU_FREQ_STAT=m
CONFIG_CPU_FREQ_STAT_DETAILS=y
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
# 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=m
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
[root@localhost ~]#
Asus M2N, AMD Athlon 64 X2 5000+, 8 GB, Asus Nvidia 210 silent, Linksys WMP600N, Plugable USB-BT4LE Bluetooth 4.0 Adapter, lecteur multicarte Addonics AEIDDSAU, HP LaserJet 1220

User avatar
promeneur
Utente senior
Utente senior
Posts: 547
Joined: 6 February 2009, 17:47
ROSA: -
OpenMandriva: 2010.3 i586
Kernel: 3.5.7 nrj dsktp pae
Desktop: MIB kde 4.8.4
country: France

Re: cpufreq pb

Post by promeneur »

is there a way (command line) to activate powersave and conservative, ondemand ?
Asus M2N, AMD Athlon 64 X2 5000+, 8 GB, Asus Nvidia 210 silent, Linksys WMP600N, Plugable USB-BT4LE Bluetooth 4.0 Adapter, lecteur multicarte Addonics AEIDDSAU, HP LaserJet 1220

User avatar
serma
Utente junior
Utente junior
Posts: 33
Joined: 9 June 2012, 15:32
ROSA: mdv2011
OpenMandriva: 2011upROSA2012LTS
Kernel: 3.8.3-nrj-laptop
Desktop: kde 4.8.5
country: el

Re: cpufreq pb

Post by serma »

<For options set to m, load the modules when you need them. You must manually load them after each boot if they are not loaded automatically by the distribution configuration >
modprobe cpufreq_powersave

Kernel options related to CPUFreq
http://publib.boulder.ibm.com/infocente ... PUFreq.htm

User avatar
NicCo
Amministratore
Amministratore
Posts: 4765
Joined: 6 December 2007, 19:54

Re: cpufreq pb

Post by NicCo »

So, did you find a solution for your problem?
serma wrote:You must manually load them after each boot if they are not loaded automatically by the distribution configuration
modprobe cpufreq_powersave
Surely it should better if these modules were loaded on each boot, instead of manual way
Perhaps you can load in the KDE Control Center, where there is the setup for Power Management

bye, NicCo
.
--- Professional experience ---
Kernel designer, engineer, maintainer and tester for ROSA Desktop and OpenMandriva Lx O.S.

--- currently I'm playing with ---
LTS Kernels > Linux 4.1.12-nrjQL <<< Linux 3.18.17-nrjQL <<< Linux 3.14.46-nrjQL
EOL Kernels > Linux 3.19.8-nrjQL <<< Linux 3.17.8-nrjQL <<< Linux 3.15.10-nrjQL

User avatar
serma
Utente junior
Utente junior
Posts: 33
Joined: 9 June 2012, 15:32
ROSA: mdv2011
OpenMandriva: 2011upROSA2012LTS
Kernel: 3.8.3-nrj-laptop
Desktop: kde 4.8.5
country: el

Re: cpufreq pb

Post by serma »

NicCo wrote:So, did you find a solution for your problem?
Surely it should better if these modules were loaded on each boot, instead of manual way
Perhaps you can load in the KDE Control Center, where there is the setup for Power Management
bye, NicCo
i dont find it

@localhost ~]$ 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 1 2 3
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 10.0 us.
hardware limits: 933 MHz - 2.13 GHz
available frequency steps: 2.13 GHz, 2.00 GHz, 1.87 GHz, 1.73 GHz, 1.60 GHz, 1.47 GHz, 1.33 GHz, 1.20 GHz, 1.07 GHz, 933 MHz
available cpufreq governors: ondemand, userspace, performance
current policy: frequency should be within 933 MHz and 2.13 GHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency is 933 MHz.
analyzing CPU 1:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 0 1 2 3
CPUs which need to have their frequency coordinated by software: 1
maximum transition latency: 10.0 us.
hardware limits: 933 MHz - 2.13 GHz
available frequency steps: 2.13 GHz, 2.00 GHz, 1.87 GHz, 1.73 GHz, 1.60 GHz, 1.47 GHz, 1.33 GHz, 1.20 GHz, 1.07 GHz, 933 MHz
available cpufreq governors: ondemand, userspace, performance
current policy: frequency should be within 933 MHz and 2.13 GHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency is 933 MHz.
analyzing CPU 2:
Last edited by serma on 17 August 2012, 15:23, edited 1 time in total.

User avatar
serma
Utente junior
Utente junior
Posts: 33
Joined: 9 June 2012, 15:32
ROSA: mdv2011
OpenMandriva: 2011upROSA2012LTS
Kernel: 3.8.3-nrj-laptop
Desktop: kde 4.8.5
country: el

Re: cpufreq pb

Post by serma »

add the desired governor(s) to the MODULES array in /etc/modules and reboot ??
# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line. Comments begin with
# a `#', and everything on the line after them are ignored.
coretemp
https://wiki.archlinux.org/index.php/CP ... ncy_driver

User avatar
promeneur
Utente senior
Utente senior
Posts: 547
Joined: 6 February 2009, 17:47
ROSA: -
OpenMandriva: 2010.3 i586
Kernel: 3.5.7 nrj dsktp pae
Desktop: MIB kde 4.8.4
country: France

Re: cpufreq pb

Post by promeneur »

/etc/modules is for kernel < 2.6

we must use /etc/modprobe.preload
Asus M2N, AMD Athlon 64 X2 5000+, 8 GB, Asus Nvidia 210 silent, Linksys WMP600N, Plugable USB-BT4LE Bluetooth 4.0 Adapter, lecteur multicarte Addonics AEIDDSAU, HP LaserJet 1220

User avatar
promeneur
Utente senior
Utente senior
Posts: 547
Joined: 6 February 2009, 17:47
ROSA: -
OpenMandriva: 2010.3 i586
Kernel: 3.5.7 nrj dsktp pae
Desktop: MIB kde 4.8.4
country: France

Re: cpufreq pb

Post by promeneur »

we must put in /etc/syconfig/cpufreq file the statement

GOVERNOR=ondemand
Asus M2N, AMD Athlon 64 X2 5000+, 8 GB, Asus Nvidia 210 silent, Linksys WMP600N, Plugable USB-BT4LE Bluetooth 4.0 Adapter, lecteur multicarte Addonics AEIDDSAU, HP LaserJet 1220

User avatar
NicCo
Amministratore
Amministratore
Posts: 4765
Joined: 6 December 2007, 19:54

Re: cpufreq pb

Post by NicCo »

upto 2010 we have mkinird
from 2011 we have systemd

the boot inits scripts start in different ways...
so what you did with 2012 could be not fine for 2011 or 2012,

and I can see "serma", differently than you, has 2011 and 2012
.
--- Professional experience ---
Kernel designer, engineer, maintainer and tester for ROSA Desktop and OpenMandriva Lx O.S.

--- currently I'm playing with ---
LTS Kernels > Linux 4.1.12-nrjQL <<< Linux 3.18.17-nrjQL <<< Linux 3.14.46-nrjQL
EOL Kernels > Linux 3.19.8-nrjQL <<< Linux 3.17.8-nrjQL <<< Linux 3.15.10-nrjQL

User avatar
promeneur
Utente senior
Utente senior
Posts: 547
Joined: 6 February 2009, 17:47
ROSA: -
OpenMandriva: 2010.3 i586
Kernel: 3.5.7 nrj dsktp pae
Desktop: MIB kde 4.8.4
country: France

Re: cpufreq pb

Post by promeneur »

the solution does not work !

randomly
- system freezes
- system restarts by itself !

i think a good solution is to set correctly the kernel source and to compile it again.

is the netbook flavour well set ?

for netbook i assume power management is activated and at least "ondemand" or "powersave" profile is set to "y"
Asus M2N, AMD Athlon 64 X2 5000+, 8 GB, Asus Nvidia 210 silent, Linksys WMP600N, Plugable USB-BT4LE Bluetooth 4.0 Adapter, lecteur multicarte Addonics AEIDDSAU, HP LaserJet 1220

User avatar
NicCo
Amministratore
Amministratore
Posts: 4765
Joined: 6 December 2007, 19:54

Re: cpufreq pb

Post by NicCo »

I could set, for the next time, these values on all -netbook flavours

CONFIG_CPU_FREQ_GOV_PERFORMANCE=m
CONFIG_CPU_FREQ_GOV_POWERSAVE=m
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m

but I have a doubt... we must do the best things for the most people,

I remember that some kernel with some rare hardware could freeze when ONDEMAND
especially when the ACPI support is NOT so good or so stable for the own hardware...

in the meawhile, can you try enabling other profiles manually (Powersave & Conservative)?


Could you test a newer kernel than 3.1.x trunk?
Kernel 3.2 is LTS and has a long support for updates (latest is 3.2.27)
.
--- Professional experience ---
Kernel designer, engineer, maintainer and tester for ROSA Desktop and OpenMandriva Lx O.S.

--- currently I'm playing with ---
LTS Kernels > Linux 4.1.12-nrjQL <<< Linux 3.18.17-nrjQL <<< Linux 3.14.46-nrjQL
EOL Kernels > Linux 3.19.8-nrjQL <<< Linux 3.17.8-nrjQL <<< Linux 3.15.10-nrjQL

User avatar
promeneur
Utente senior
Utente senior
Posts: 547
Joined: 6 February 2009, 17:47
ROSA: -
OpenMandriva: 2010.3 i586
Kernel: 3.5.7 nrj dsktp pae
Desktop: MIB kde 4.8.4
country: France

Re: cpufreq pb

Post by promeneur »

1. it's not only for netbook kernel we must set the missing profiles

2.
i face to this pb since 2 years with my 2010.2
no pb with 2.6.37 i586 desktop mandriva

the pb occurs since i use kernel that can use 4 Gb and more:

for kernel 2.6.37 i586 server mandriva and all mib nrj pae i586 kernels till 3.1.6 only performance and userspace profiles are supplied.
perhaps there is a reason for this, a kernel developper reason ?

this is not only mandriva 2010.2 that freezes but also mageia 1 and 2 and mandriva 2011

no doubt that nrj pae desktop 3.2.x freezes.

i will try
Asus M2N, AMD Athlon 64 X2 5000+, 8 GB, Asus Nvidia 210 silent, Linksys WMP600N, Plugable USB-BT4LE Bluetooth 4.0 Adapter, lecteur multicarte Addonics AEIDDSAU, HP LaserJet 1220

User avatar
NicCo
Amministratore
Amministratore
Posts: 4765
Joined: 6 December 2007, 19:54

Re: cpufreq pb

Post by NicCo »

I can study with you the problem, searching a solution,
we must discuss a lot, probably make many attempts

To begin:

The problem happens only with -server or -pae enabled?

The problem is not present in other kernels NOT PAE?
are you sure? can you try again?

I remember having read something about:
In new kernel developers preferred not using ONDEMAND because recent kernel are enabled by default with
High-Res Timers (HZ=1000) and Tickless Kernel
so changing cpu frequency speed using ONDEMAND can lead only to problems and not real energy saving...
.
--- Professional experience ---
Kernel designer, engineer, maintainer and tester for ROSA Desktop and OpenMandriva Lx O.S.

--- currently I'm playing with ---
LTS Kernels > Linux 4.1.12-nrjQL <<< Linux 3.18.17-nrjQL <<< Linux 3.14.46-nrjQL
EOL Kernels > Linux 3.19.8-nrjQL <<< Linux 3.17.8-nrjQL <<< Linux 3.15.10-nrjQL

User avatar
serma
Utente junior
Utente junior
Posts: 33
Joined: 9 June 2012, 15:32
ROSA: mdv2011
OpenMandriva: 2011upROSA2012LTS
Kernel: 3.8.3-nrj-laptop
Desktop: kde 4.8.5
country: el

Re: cpufreq pb

Post by serma »

Kernel: 3.5.1-nrj-desktop-1rosa
@localhost ~]$ inxi -Fixz
System: Host: localhost.localdomain Kernel: 3.5.1-nrj-desktop-1rosa.lts x86_64 (64 bit, gcc: 4.6.1)
Desktop: KDE 4.8.4 (Qt 4.8.0) Distro: MandrivaLinux 2012.0 turtle
@localhost ~]$ zgrep CPU_FREQ /proc/config.gz
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=m
CONFIG_CPU_FREQ_STAT=m
CONFIG_CPU_FREQ_STAT_DETAILS=y
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
# 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=m
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
@localhost ~]$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
ondemand
ondemand
ondemand
ondemand

User avatar
promeneur
Utente senior
Utente senior
Posts: 547
Joined: 6 February 2009, 17:47
ROSA: -
OpenMandriva: 2010.3 i586
Kernel: 3.5.7 nrj dsktp pae
Desktop: MIB kde 4.8.4
country: France

Re: cpufreq pb

Post by promeneur »

i resolved "freeze-reboot" pb.

it's a harware pb : a memory card

i took it away then no more pb, just 1 GB less

but it remains the question : is it useful to save energy and to decrease the temperature of the cpu, using ondemand profile with 3.2.27 ?

Theoretiically it's too techie for me and i have not a tool to record temperature with or without.

Practically with gkrell i see the temperature of the cpu decreases when frequency decreases then i conlude "yes"

note : i read also that bios can cause such a freeze. updating bios solves pb (in my case bios was updated for a long time)
Asus M2N, AMD Athlon 64 X2 5000+, 8 GB, Asus Nvidia 210 silent, Linksys WMP600N, Plugable USB-BT4LE Bluetooth 4.0 Adapter, lecteur multicarte Addonics AEIDDSAU, HP LaserJet 1220

Post Reply