mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alexander Clouter <alex-kernel@digriz.org.uk>
To: "Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>
Cc: Con Kolivas <kernel@kolivas.org>,
	cpufreq@www.linux.org.uk, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] cpufreq_ondemand
Date: Mon, 18 Oct 2004 09:39:05 +0100	[thread overview]
Message-ID: <20041018083905.GC3311@inskipp.digriz.org.uk> (raw)
In-Reply-To: <88056F38E9E48644A0F562A38C64FB60031DA073@scsmsx403.amr.corp.intel.com>

[-- Attachment #1: Type: text/plain, Size: 2044 bytes --]

On Oct 17, Pallipadi, Venkatesh wrote:
> 
> [snipped]
> 
> We can never accurately predict freq for some future load. 
> Say a CPU capable of 600, 800, 1000, 1200 and 1400 KHz, is 
> running at 600 and we have sudden 100% CPU utilization, then 
> we cannot precisely say which should be the next freq. It 
> can be any of the higher possible freqs. And we felt performance 
> should get a higher priority whenever there is some 
> tradeoffs like this.
> 
it took me a while to work out why speed decreasing was 'working' whilst 
speed increasing was not with my method; a good hour finding out that the 
cpufreq (correctly) goes to the lowest match.

My approach was not to try and avoid predicting the desired freq, it was just 
to increase it...well on demand at a steady rate towards 100% and then once 
the load disappears to reduce it.  Having used powernowd and found it do that 
rather nicely, then seeing the inclusion of cpufreq_ondemand, I tweaked 
cpufreq_ondemand to replace powernowd.

I'm all for "this really should be done in userspace", but for something like 
this I have a nagging feeling that its neater in kernel-space.  Of course the 
userspace one has the advantage (I think cpufreqd does it) that you can 
decide if you want to increase the freq depending on what applications are 
running.

Of course you are using CPU cycles, though bearly any, to have this floating 
requested_freq variable.  Of course I would love this to be in the kernel, 
mainly though I wanted people to improve upon it and such.

Meanwhile I am thinking of moving that freq_step variable bits to the /sys 
show/store functions to remove a avoidable divide.

Cheers

Alex

-- 
 ____________________________________ 
/ Let your conscience be your guide. \
|                                    |
\ -- Pope                            /
 ------------------------------------ 
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-10-18  8:38 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-18  4:56 Pallipadi, Venkatesh
2004-10-18  8:39 ` Alexander Clouter [this message]
2004-10-19  5:06   ` Willy Tarreau
  -- strict thread matches above, loose matches on Subject: below --
2004-10-18 22:48 Pallipadi, Venkatesh
2004-10-18 23:18 ` Alexander Clouter
2004-10-17 22:29 Alexander Clouter
2004-10-17 22:35 ` Con Kolivas
2004-10-17 22:44   ` Alexander Clouter
2004-10-19 18:22   ` Bruno Ducrot
2004-10-20  5:03   ` Andre Eisenbach
2004-10-20  7:35     ` Len Brown
2004-10-20 14:30       ` Dominik Brodowski
2004-10-20 21:03         ` Len Brown
2004-10-20 21:18           ` Dominik Brodowski
2004-10-18  7:20 ` Dominik Brodowski
2004-10-18  8:12   ` Mattia Dongili
2004-10-18  8:25   ` Alexander Clouter

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=20041018083905.GC3311@inskipp.digriz.org.uk \
    --to=alex-kernel@digriz.org.uk \
    --cc=cpufreq@www.linux.org.uk \
    --cc=kernel@kolivas.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=venkatesh.pallipadi@intel.com \
    /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

Powered by JetHome