Bug 2920 - cpufreq+kernel server then freeze
Summary: cpufreq+kernel server then freeze
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard: MGA1TOO
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-03 17:11 CEST by episteme promeneur
Modified: 2012-08-22 11:20 CEST (History)
4 users (show)

See Also:
Source RPM: cpufreq
CVE:
Status comment:


Attachments
messages file when using cpufreq (54.42 KB, text/plain)
2012-02-01 12:09 CET, episteme promeneur
Details

Description episteme promeneur 2011-10-03 17:11:37 CEST
Description of problem:

the installer installed in my desktop a kernel server 2.6.38.8-server-5.mga due to my 5 Go ram
then
i install cpufreq and cpufreq-utils to have a cpu frequence management
then
i see frequence is managed "on demand", good

but
i have freeze or reboot during startup or opening a kde session or during a kde session
(without launching any app just the default one by the kde opening a session)

How reproducible:


Steps to Reproduce:
activate cpu power management by installing cpu freq and coufreutils
then
restart pc
then
open a kde session
then
use an app or not
just wait
then
you have freeze or reboot

no problem with the kernel destop

it seems the cpu powermangement is not compliant with the kernel server
Comment 1 episteme promeneur 2011-10-03 17:21:48 CEST
there is the same pb wih mandriva 2010.2 and kernel server 2.6.33.7-2
Comment 2 Remco Rijnders 2011-10-04 07:21:10 CEST
Thomas, is this something you'd know anything about?

CC: (none) => tmb

Comment 3 episteme promeneur 2011-10-04 08:45:26 CEST
same pb with mandriva 2010.2 and mib kernel desktop nrj-pae.

it seems there is a compliancy problem with pae technology
Comment 4 episteme promeneur 2011-10-09 11:33:56 CEST
ok i made some experiments

instead of using "ondemand" profile i use "conservative" profile
then
no pb

my cpu is an AMD Athlon 64 X2 dual core 5000+

contents of scaling_available_governors :

ondemand conservative powersave userspace performance

contents of scaling_available_frequencies

2600000 2400000 2200000 2000000 1800000 1000000 

running modules by default (lsmod)

powernow_k8
cpufreq_conservative
cpufreq_ondemand
cpufreq_powersave
Comment 5 episteme promeneur 2011-10-09 11:41:17 CEST
i don't use cpu freq-utils tro set the profile

i use a script :

#!/bin/bash 
for file in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; 
do echo conservative > $file; done
Comment 6 episteme promeneur 2011-10-10 08:44:21 CEST
i made an error.

with "conservative" profile i have the same problems.
Comment 7 episteme promeneur 2011-10-11 17:44:31 CEST
hypothesis : a vboxdrv problem ?
Comment 8 Manuel Hiebel 2011-10-30 13:09:35 CET
(In reply to comment #7)
> hypothesis : a vboxdrv problem ?

I'am sure, there was an update of Virtualbox, I guess this bug is still valid ?

Source RPM: (none) => cpufreq

Comment 9 episteme promeneur 2011-12-15 14:00:15 CET
yes this bug is still valid
Comment 10 Marja Van Waes 2012-01-31 07:50:25 CET
does the same problem exist in cauldron?

are there Mandriva and MIB bug reports about this issue?

did anyone have time to search upstream or in other distro's?

CC: (none) => marja11

Comment 11 episteme promeneur 2012-01-31 09:23:03 CET
(In reply to comment #10)
> does the same problem exist in cauldron?
> 
i can't install mageia2 alpha3 DVD iso with my usb key and we can't install it directly from the iso in disk

> are there Mandriva and MIB bug reports about this issue?
> 
yes

https://qa.mandriva.com/show_bug.cgi?id=63819
Comment 12 Marja Van Waes 2012-01-31 20:00:49 CET
I don't manage to find the current upstream home, only http://www.kernel.org/pub/linux/utils/kernel/cpufreq, but nothing happened there since 2005

I spent too much time trying to find the correct link to upstream. 

a google search for cpufreq* freeze* 2012 gives way too many hits, maybe there is an error message that can be added to the search string.

@ episteme

can you please attach the part of /var/log/messages from starting your system until the freeze or reboot during startup?

and maybe the same for when the freeze/reboot happens while starting or running KDE, in a separate attachment.

cc'ing the committers of cpufreq

@ eandry, kamil

isn't there a debug package for cpufreq? I look over it

(Please assign to yourself and set the status to 'assigned' if you are working on it)

CC: (none) => eandry, n54

Comment 13 episteme promeneur 2012-02-01 12:09:11 CET
Created attachment 1480 [details]
messages file when using cpufreq

i activate cpufreq at 2012 feb 1, 11 h 52
then
10 or 20 s after the system reboots
Marja Van Waes 2012-02-01 12:14:04 CET

Attachment 1480 mime type: text/x-log => text/plain

Marja Van Waes 2012-02-02 09:29:10 CET

CC: (none) => doktor5000

Marja Van Waes 2012-02-02 13:59:20 CET

CC: marja11 => (none)

Comment 14 Marja Van Waes 2012-02-02 14:04:06 CET
just testing something, sorry for the noise

CC: (none) => marja11

Marja Van Waes 2012-02-17 08:28:00 CET

CC: doktor5000 => (none)

Comment 15 episteme promeneur 2012-03-22 16:07:13 CET
mageia 2 beta 2 x86_64 last kernel 3.3 (22 march 2012)

i install cpufreq-utils packet
then
as root i enter "cpufreq -r -g ondemand"
then
immediately kde desktop freezes
then
i must restart pc
Comment 16 episteme promeneur 2012-04-29 11:42:52 CEST
Mageia 2 beta 3 x86_64

there is an improvement

using "performance" profile : no freeze

but

using "ondemand" profile : freeze

i type
cpufreq -r -g ondemand
then
 i see the frequence of the 2 cores switches to 1000 MHz
then
i try to use an app then desktop freeze
then
i must restart the pc

my cpu is an AMD 64 X2 dual core 5000+
Comment 17 episteme promeneur 2012-04-29 17:23:11 CEST
another pb

i want to record "ondemand" profile
then
i add the statement
governor=ondemand
in
/etc/sysconfig/cpufreq file
then
i reboot
then
with cpufreq-info i see "performance" profile is in use !

we can't record a powermanagement profile

hypothesis : a sytemd problem

something is not started before profile setting ?

bad timing between powernow_k8 driver and cpufreq daemon ?

/etc/sysconfig/cpufreq file is not the conf file of cpufreq daemon ?
Comment 18 episteme promeneur 2012-05-11 11:22:20 CEST
mageia 2 rc

i can't use mageia

mageia freezes after a short time

with
- kde
- icewm
- failsafe mode
Comment 19 episteme promeneur 2012-05-11 11:26:36 CEST
addendum :

i have not time to change to "performance" profile"
because
i have not time to install cpufreq-utils according to use cpufreq-set
Comment 20 episteme promeneur 2012-05-12 10:58:55 CEST
i made again some intensive google searches
this time i found some new knowledge.

i assume the pb turns around the hardware (asus m2n), bios, kernel, acpi, cpufreq

the 2 things i can do :
- update bios
- turn off acpi 

update bios is to dangerous, i need my pc

i choose to test this solution :

- turn off acpi
- do not use cpufreq

thus

in kernel boot statement i add "acpi=off"
and
i don't load powernow_k8

then

this is the bios (cool and quiet amd software) which manages cpu frequence scaling

this works well but i wait one day more to say it is a good workaround

is there a technician who can  says to me what functions are then disabled
by turning off acpi with a desktop ?
Comment 21 Manuel Hiebel 2012-05-12 12:00:21 CEST
>update bios is to dangerous, i need my pc
not really if you follow carefully the process

and iirc you have do to nothing with cpufreq since it's include in the kernel
Comment 22 episteme promeneur 2012-05-12 12:17:17 CEST
<< you have do to nothing with cpufreq since it's include in the kernel

yes i know cpufreq is include in the kernel. what do you mean ?
Comment 23 episteme promeneur 2012-05-12 13:21:01 CEST
i note this :

the limit are with :

- cpufreq kernel module : 1000 MHz , 2600 MHz

- cool and quiet : 48 MHz , 3018 MHz

the accuracy of the frequencies are with :

- cpufreq kernel module : wx00 MHz
for example 1000, 1200, 2000,2400, 2600

- cool and quiet : wxyz MHZ

for example 245 MHz or 868 MHZ or 2041 MHz

is there a way to have this accuracy with cpufreq kernel module ?
Comment 24 episteme promeneur 2012-05-12 13:22:35 CEST
is there a way to have same limits as 48 MHz and 3018 MHz ?
Comment 25 episteme promeneur 2012-05-13 16:10:51 CEST
i updated the bios of the asus m2n board to the last 0902 bios

this solves the freeze pb with ... mandriva 2010.2 i586+kernel 3.1.6 pae
but
not with mageia 2 rc x86_64+ kernel 3.3.6

if i use "ondemand" profile with linux failsafe
then
it freezes
then
it is not a x.org, kde, nvidia 295.x, nvidia ethernet, ralink wifi pb

where is the difference ?
Comment 26 episteme promeneur 2012-05-14 12:30:24 CEST
after testing

mandriva 2010.2 i586 +kernel 3.1.6 +pae :  delay to freeze 10 mn

mageia 2 rc x86_64 + kernel 3.3.6 : delay to freeze 1 mn

then pb is still there

i made google searches, result :

between about after around kernel 2.6.27 and till around kernel 3.x.y cpufreq support disappears. only performance profile was supplied.

now with kernel 3.3.6 i check that all profiles are supplied
but
it seems that for a quantity of cpu there is always pb, cpufreq seems buggy
Comment 27 episteme promeneur 2012-07-17 14:20:55 CEST
mageia 2 x86_64

pb still there

by default the profile is "ondemand"

eacch time with a delay of about 20 s system freezes

i swithed to performance profile then no pb
Marja Van Waes 2012-07-30 20:21:19 CEST

Hardware: i586 => All
Version: 1 => 2
Whiteboard: (none) => MGA1TOO

Comment 28 episteme promeneur 2012-08-12 11:12:33 CEST
ok now i understand the pb.

cpufreq-info says profile list is users,performance.
mageia default install set profile to "ondemand" which is not in the list !

but the real pb is : the profile list must be adaptive, 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 adaptive and ondemand are not enable

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 ~]#
Comment 29 episteme promeneur 2012-08-12 11:17:36 CEST
replace :
- adaptative by powersave, conservative in my comment #28
- enable by activated
Comment 30 episteme promeneur 2012-08-12 11:18:33 CEST
is there a way (command line) to activate powersave and conservative ?
Comment 31 episteme promeneur 2012-08-22 11:20:18 CEST
freeze is a hardware pb, a ram pb.

i took away 1 GB memory card then no more pb

Status: NEW => RESOLVED
Resolution: (none) => INVALID


Note You need to log in before you can comment on or make changes to this bug.