Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Apr 2005 16:01:02 +0200
From:      Bruno Ducrot <ducrot@poupinou.org>
To:        Frank Behrens <frank@pinky.sax.de>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: My experience with cpufreq in -STABLE
Message-ID:  <20050406140102.GY2298@poupinou.org>
In-Reply-To: <200504060649.j366nGQg021228@pinky.frank-behrens.de>
References:  <200504041645.j34Gj2ow002999@pinky.frank-behrens.de> <200504060649.j366nGQg021228@pinky.frank-behrens.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 06, 2005 at 08:49:15AM +0200, Frank Behrens wrote:
> Bruno Ducrot <ducrot@poupinou.org> wrote on 4 Apr 2005 19:17:
> > You may start looking at src/usr.sbin/powerd in -current, and improve it
> > a bit?  The actual algorithm used in powerd may need some rework IMHO.
> 
> Which problems do you see?

powerd use an exponentional decrease of the frequency.  This might be
not stable for certain workload.

> My comments:
> 1. If the frequency is raised it should not go down immediately on 
> short idle phases. To raise the frequency the current idle value 
> should used but to lower the frequency we should calculate a weighted 
> idle average value.

It might be a solution.  It has been tested in that paper:

http://www-mtl.mit.edu/research/icsystems/pubs/conferences/2001/sinha_vlsi2001.pdf

and it seems it's maybe not the better one, though (search 'MAW', its
exactly what you suggest).

> 2. The default polling time of 500 ms seems to be very short. It can 
> increased to several seconds.

Problem if you increase teh polling intervall is that you can't be sure
that the system can detect in time when going up.

-- 
Bruno Ducrot

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050406140102.GY2298>