mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Björn Steinbrink" <B.Steinbrink@gmx.de>
To: Arjan van de Ven <arjan@infradead.org>
Cc: Pavel Machek <pavel@suse.cz>,
	auke-jan.h.kok@intel.com, linux-acpi@vger.kernel.org,
	linux-kernel@vger.kernel.org, len.brown@intel.com,
	cpufreq@lists.linux.org.uk, davej@codemonkey.org.uk
Subject: Re: bug? acpi p-state + ondemand keeps dropping max freq
Date: Sat, 5 Jul 2008 21:49:08 +0200	[thread overview]
Message-ID: <20080705194908.GA13149@atjola.homenet> (raw)
In-Reply-To: <20080616074337.46d6f411@infradead.org>

On 2008.06.16 07:43:37 -0700, Arjan van de Ven wrote:
> On Mon, 16 Jun 2008 12:42:00 +0200
> Pavel Machek <pavel@suse.cz> wrote:
> 
> > On Sat 2008-06-07 14:54:35, Arjan van de Ven wrote:
> > > On Sat, 7 Jun 2008 23:39:18 +0200
> > > Pavel Machek <pavel@suse.cz> wrote:
> > > 
> > > > > # echo 1866000 > scaling_max_freq ; cat scaling_max_freq
> > > > > 800000
> > > > > # echo 1866000 > scaling_max_freq ; cat scaling_max_freq
> > > > > 800000
> > > > > 
> > > > > 
> > > > > This renders my Dothan to utterly poor speeds. (standard T43)
> > > > > 
> > > > > performance cpufreq governor makes no difference - I still can't
> > > > > change the frequency upper/lower values.
> > > > 
> > > > Hmm, I have similar problem in Novell bugzilla, on very different
> > > > hw:
> > > > 
> > > > https://bugzilla.novell.com/show_bug.cgi?id=396311
> > 
> > > are either of you running gnome-power-manager or kpowersaved ?
> > > sometimes these programs (and more likely, the patches added by a
> > > distro maintainer who doesn't fully realize how power works) tend to
> > > muck with kernel settings around CPU frequency that they have
> > > absolutely no business touching...
> > 
> > In novel bugzilla case ignore_ppc=1 helped, so it seems to be BIOS
> > problem, not userland's...
> 
> well as long as the user doesn't use this for production use... the
> BIOS often reduces frequencies available to deal with thermal
> situations, so it's not a good idea to ignore that.

Yep, seems to be a thermal thing. I managed to find some time to play
around with it a bit, and running a cpu hog for a short period of time,
while watching temperature and scaling_max_freq showed this:

cpufreq# cat /proc/acpi/thermal_zone/THM0/temperature
temperature:             49 C
cpufreq# cat scaling_max_freq
1866000

cpufreq# cat /proc/acpi/thermal_zone/THM0/temperature
temperature:             51 C
cpufreq# cat scaling_max_freq
1866000

cpufreq# cat /proc/acpi/thermal_zone/THM0/temperature
temperature:             52 C
cpufreq# cat scaling_max_freq
1866000

cpufreq# cat /proc/acpi/thermal_zone/THM0/temperature
temperature:             53 C
cpufreq# cat scaling_max_freq
1866000

cpufreq# cat /proc/acpi/thermal_zone/THM0/temperature
temperature:             54 C
cpufreq# cat scaling_max_freq
800000

cpufreq# cat /proc/acpi/thermal_zone/THM0/temperature
temperature:             53 C
cpufreq# cat scaling_max_freq
800000

cpufreq# cat /proc/acpi/thermal_zone/THM0/temperature
temperature:             51 C
cpufreq# cat scaling_max_freq
800000

cpufreq# cat /proc/acpi/thermal_zone/THM0/temperature
temperature:             51 C
cpufreq# cat scaling_max_freq
800000

cpufreq# cat /proc/acpi/thermal_zone/THM0/temperature
temperature:             50 C
cpufreq# cat scaling_max_freq
800000

cpufreq# cat /proc/acpi/thermal_zone/THM0/temperature
temperature:             49 C
cpufreq# cat scaling_max_freq
1866000


So upon reaching 54°C some throttling kicks in and only when going back
to less then 50°C, that limit is lifted again. Too bad that with Linux,
this T43 already runs at about 47°C when idle, so as soon as there's any
load on the cpu, it will scale up for a few seconds and then get
throttled :-(

There's no userspace powersave foo involved here, just the plain
ondemand scaling governor, same happens with the performance governor.

Björn

  parent reply	other threads:[~2008-07-05 19:49 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080606140846.GA9580@ucw.cz>
2008-06-07 21:39 ` Pavel Machek
2008-06-07 21:54   ` Arjan van de Ven
2008-06-07 23:36     ` Holger Macht
2008-06-09 16:39     ` Kok, Auke
2008-06-16 10:42     ` Pavel Machek
2008-06-16 14:43       ` Arjan van de Ven
2008-06-17  8:44         ` Pavel Machek
2008-07-05 19:49         ` Björn Steinbrink [this message]
2008-07-05 20:04           ` Björn Steinbrink
2008-06-17 18:15       ` Len Brown
2008-06-05 22:30 Kok, Auke
2008-06-06  4:13 ` Henrique de Moraes Holschuh
2008-06-06 16:34   ` Kok, Auke
2008-06-06 19:47     ` Henrique de Moraes Holschuh
2008-06-07  2:46 ` Len Brown
2008-06-07 23:22 ` Björn Steinbrink

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080705194908.GA13149@atjola.homenet \
    --to=b.steinbrink@gmx.de \
    --cc=arjan@infradead.org \
    --cc=auke-jan.h.kok@intel.com \
    --cc=cpufreq@lists.linux.org.uk \
    --cc=davej@codemonkey.org.uk \
    --cc=len.brown@intel.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®