public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Renninger <mail-smMupaH/RwJM7kwft8N7nw@public.gmane.org>
To: Dominik Brodowski
	<linux-X3ehHDuj6sIIGcDfoQAp7BvVK+yQ3ZXh@public.gmane.org>
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: passive cooling policy
Date: Sun, 12 Sep 2004 11:32:20 +0200	[thread overview]
Message-ID: <414417A4.3070009@renninger.de> (raw)
In-Reply-To: <20040908085423.GA7785-X3ehHDuj6sIIGcDfoQAp7BvVK+yQ3ZXh@public.gmane.org>

Hi Dominik,

Dominik Brodowski wrote:
> Hi Thomas,
> 
>>3) If passive limit is reached, kernel throttles cpu and tries to set 
>>cpufreq to lowest step. Only way to find out whether machine is 
>>passively cooled is in polling /proc/acpi/thermal_zone/*/state.
>>(Is it right that cpufreq daemons poll this file to be informed of 
>>kernel forced cpufreq slow downs?)
> 
> Why do cpufreq daemons want to know that? And the ordering is important:
> first scale CPU frequency be means of cpufreq, _then_ throttle the CPU.
Maybe I miss some easy solution to work around this problem, but 
currently I have the problem that:

E.g. machine enters passive cooling mode, cpu usage is high, cpufreq 
daemon sets machine to highest cpufreq step, but it is ignored.
Processor cools down, cpu usage is still high, cpufreq is still in 
lowered step, because the daemon thinks it already set the frequency to 
highest step.

I did a short test some time ago and I thought that kernel does not 
remember userspace cpufreq settings while in passive mode.
I currently see three solutions for this:

Checking whether the cpufreq setting really took place.
Polling whether machine is in passive cooling mode.
Last and for my opinion most proper one is by just send a thermal event 
when entering/leaving passive cooling mode. I saw that some kind of 
hysteresis algorithm is implemented, so the event should not be thrown 
too often.

> 
>>1) inform userspace that cpu speed is increased/decreased through a 
>>thermal event.
>>-> avoid userspace progs polling /proc/acpi/thermal_zone/*/state to be 
>>informed whether the system is slowed down.
> 
> Again, I do not see a reason for why this needs to be exported to userspace.
My main concern is stated above, but it could also be convenient for 
informing the user or monitoring programs.
> 
>>2) Allow setting a passive trip point even BIOS does not export a 
>>passive trip point value and initialise tc1, tc2 and tsp with some 
>>sensible default values.
>>-> you could lower fan activity on every laptop/workstation that 
>>supports throttling/cpufreq regardless whether the BIOS exports any 
>>passive trip points/cooling mode (event most laptop vendors don't care 
>>about trip points).
> 
> As long as this allows an additional, probably lower "trip point" for
> _passive_ cooling, this sounds like a good idea. It cannot hurt as long as
> it doesn't disable the BIOS-initialized active cooling.
I currently have not much time, but I try to have a look at this soon.

     Thomas


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php

  parent reply	other threads:[~2004-09-12  9:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-06 17:39 passive cooling policy Thomas Renninger
     [not found] ` <413CA0D9.5030901-smMupaH/RwJM7kwft8N7nw@public.gmane.org>
2004-09-08  8:54   ` Dominik Brodowski
     [not found]     ` <20040908085423.GA7785-X3ehHDuj6sIIGcDfoQAp7BvVK+yQ3ZXh@public.gmane.org>
2004-09-12  9:32       ` Thomas Renninger [this message]
     [not found]         ` <414417A4.3070009-smMupaH/RwJM7kwft8N7nw@public.gmane.org>
2004-09-12 11:15           ` Dominik Brodowski

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=414417A4.3070009@renninger.de \
    --to=mail-smmupah/rwjm7kwft8n7nw@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=linux-X3ehHDuj6sIIGcDfoQAp7BvVK+yQ3ZXh@public.gmane.org \
    /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