You are not logged in.
Greetings,
I was experiencing sluggish performance on my HP 625 laptop under Arch sometimes. After I examined cpu frequencies, it became clear that they were lowered substantially all the time.
Normally I would just use cpufreq-set or somesuch to modify them, but strange thing occurs now:
a couple of minutes after unplugging AC cable, current cpu frequencies and their upper bounds are lowered (usually 2/3 of maximum) for some reason. Replugging AC doesn't change this, and any settings (cpufreq-set, directly writing to cpureq files) are ineffective. Nothing can change this short of reboot.
I tried changing /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq, but it is immediately reverted. Is there a way to see which process changes a file?
Offline
Why dont you kill them one by one in a "as simple as possible" environment and check /var/log/everything.log for hints?
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
kill who?
Offline
I'd begin without even starting X and kill processes owned by you
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
there are virtually no processes run by me. Or you mean root also?
Offline
Yes, also root, try to track down the root of the issue, isolate the problem!
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
Strange enough, even doing killall -u root didn't allow me to change cpu frequency afterwards.
I must say the issue is dodgy, I cannot point out a 100% way to reproduce it. Is there a way to covpletely disable frequency scaling? I tried adding processor.ignore_ppc=1 to menu.lst, but problem persists.
Offline
What if you "rmod" cpufreq-related modules? (including lsmod|grep -i cpufreq) and load them again, any effect?
Keep in mind that i'm shooting in the dark
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
I only found powernow-k8 module, and disabling it makes it impossible to see current frequency (but judging by lag it's still underscaled).
So far this is what I discovered:
1) turn on PC with AC plugged in.
frequency is controllable, everything ok.
2)unplug AC
still good
3) start X (gnome)
frequency goes down, nothing but reboot brings it to order.
I tried making cpufreq files read-only, but the are overwritten nonetheless.
I also tried Ubuntu LiveCD, same problem (but only tried with X running there).
Offline
https://bbs.archlinux.org/viewtopic.php?id=132709
This looks a bit like a bug in the CPU governing system, even though I didn't have any problems with it on 3.1 kernel series
EDIT: Does this help?
modprobe cpufreq_performance (if not loaded already)
cpufreq-set -g performance
rmmod cpufreq_ondemand
modprobe cpufreq_ondemand
cpufreq-set -g ondemand
If not, try repeating this but this time remove the whole acpi_cpufreq module chain.
Last edited by MadCat_X (2011-12-30 16:51:16)
Offline
sorry if i made a new thread, but i thought my problem was a little bit different... right now performance on ac power runs perfectly...only ondemand set itself on the lowest freq possible. I think may be a bug related to pm-utils?(always occurrs after suspend in ondemand, or when plug in and out ac cable) I'll try now with granola to understand if it's a cpu scaling bug or ondemand governor one.
EDIT: tried to remove ondeman then modprobe it, but nothing change, always 1ghz and it will stay there...
Last edited by nierro (2011-12-30 18:08:20)
Offline
granola too isn't working(granola as i said uses userspace governor)...so the bug might be related to cpu frequency scaling, that after acpid events (lid close, suspend, ac cable plugged in and out) losts its capacity and locks freq to the lowest possible...
I think only performance and conservative will works 100%, because they don't need any cpu scaling.
What do you think about?any workaround?
EDIT: well i tried booting my -ARCH kernel and i found out that no /proc/acpi/ac_adapter/*/state is there... what can i do?(anyway i tried yesterday, while using cpufreq daemon, and I had the same problem.
EDIT2: tried on my other laptop with arch kernel 3.1.5 and there everything works well...in that laptop i have gnome3.2(but i don't think it really matters) and i have no acpi and acpid installed...may be something wrong with them?
Last edited by nierro (2011-12-30 19:09:17)
Offline
EDIT: Does this help?
modprobe cpufreq_performance (if not loaded already) cpufreq-set -g performance rmmod cpufreq_ondemand modprobe cpufreq_ondemand cpufreq-set -g ondemand
If not, try repeating this but this time remove the whole acpi_cpufreq module chain.
ondemand governor more or less works. However I'd rather just nail frequency to maximum, but cannot achieve that.
sorry if i made a new thread, but i thought my problem was a little bit different..
Yes, it looks like your problem is somewhat different
Offline
ondemand governor more or less works. However I'd rather just nail frequency to maximum, but cannot achieve that.
In that case, wouldn't the performance governor suit your needs?
Offline
I suppose it would, but when I try to use performace or userspace, things that I described in the first post happen.
EDIT: ondemand is now behaving the same way. It seems that this is due to min and max scaling frequencies changing unexpectedly. At the moment, " current policy: frequency should be within 840 MHz and 1.50 GHz." which apparently leads to frequency being stuck at 1.5.
Is there a way to prevent scaling_max_frequency and scaling_min_frequency files from changing? Or they are merely indicating the change?
Last edited by aash29 (2011-12-31 10:01:52)
Offline
This time I actually read what your problem is and it made me thinking if it's the BIOS that's in fault. It would be interesting to check if there's an update available or try to boot Windows on your laptop. From time to time I have to boot into Win7 on my laptop to reinstall certain Toshiba ACPI driver to switch the cooling policy from "throttle CPU down and keep fan at low speed" to "run CPU and fan at full speed if needed".
Offline
I have Windows 7 on this laptop, but don't know which driver (if any) I should install. Settings in BIOS itself are VERY limited, and this laptop model is said to brick even when updating with certified vendor BIOS updates.
Offline
That's rather unfortunate as the HP website for your laptop suggests that there have been at least 2 BIOS updates that dealt with various weird issues. Does Win7 work OK on your machine? You can check the min, max and current clock using CPU-Z.
Offline
I didn't find any power management problems in bios updates descriptions.
There are "bios_limit" files in cpureq directory, and they contain "2100000", as expected. I also tested under Windows with CPU-Z, but didn't find max and min scaling options. However, frequency was maxed almost all the time (as I set in power management options), so this _seems_ to be a linux-specific problem (maybe even X-specific, as it begins to occur after loading X).
Offline