From owner-svn-src-head@FreeBSD.ORG Sat Jan 3 11:22:03 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27A9E106564A; Sat, 3 Jan 2009 11:22:03 +0000 (UTC) (envelope-from jeremie@le-hen.org) Received: from postfix2-g20.free.fr (postfix2-g20.free.fr [212.27.60.43]) by mx1.freebsd.org (Postfix) with ESMTP id AF2458FC12; Sat, 3 Jan 2009 11:22:02 +0000 (UTC) (envelope-from jeremie@le-hen.org) Received: from smtp1-g21.free.fr (smtp1-g21.free.fr [212.27.42.1]) by postfix2-g20.free.fr (Postfix) with ESMTP id 9ADAC2E857D0; Sat, 3 Jan 2009 09:54:41 +0100 (CET) Received: from smtp1-g21.free.fr (localhost [127.0.0.1]) by smtp1-g21.free.fr (Postfix) with ESMTP id 1E976940161; Sat, 3 Jan 2009 11:54:43 +0100 (CET) Received: from endor.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp1-g21.free.fr (Postfix) with ESMTP id 39B8094000E; Sat, 3 Jan 2009 11:54:41 +0100 (CET) Received: from obiwan.tataz.chchile.org (endor.tataz.chchile.org [192.168.1.25]) by endor.tataz.chchile.org (Postfix) with ESMTP id 9436FCD970; Sat, 3 Jan 2009 11:54:15 +0100 (CET) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id 7D29F405B; Sat, 3 Jan 2009 11:54:15 +0100 (CET) Date: Sat, 3 Jan 2009 11:54:15 +0100 From: Jeremie Le Hen To: Alexander Motin Message-ID: <20090103105415.GA40686@obiwan.tataz.chchile.org> References: <200811181324.mAIDOcOc079096@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200811181324.mAIDOcOc079096@svn.freebsd.org> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r185050 - head/usr.sbin/powerd X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2009 11:22:03 -0000 Hi Alexander, On Tue, Nov 18, 2008 at 01:24:38PM +0000, Alexander Motin wrote: > Author: mav > Date: Tue Nov 18 13:24:38 2008 > New Revision: 185050 > URL: http://svn.freebsd.org/changeset/base/185050 > > Log: > Set of powerd enchancements: > > 1. Make it more SMP polite. Previous version uses average CPU load that > often leads to load underestimation. It make powerd with default > configuration unusable on systems with more then 2 CPUs. I propose to use > summary load instead of average one. IMO this is the best we can do without > specially tuned scheduler. Also as soon as measuring total load on SMP > systems is more useful then total idle, I have switched to it. > > 2. Make powerd's operation independent from number and size of frequency > levels. I have added internal frequency counter which translated into real > frequencies only on a last stage and only as good as gone. Some systems may > have only several power levels, while others - many of them, so adaptation > time with previous approach was completely different. > > 3. As part of previous I have changed adaptive mode to rise frequency on > demand up to 2 times and fall on 1/8 per time internal. > > 4. For desktop (AC-powered) systems I have added one more mode - "hiadaptive". > It rises frequency twice faster, drops it 4 times slower, prefers twice > lower CPU load and has additional delay before leaving the highest frequency > after the period of maximum load. This mode was specially made to improve > interactivity of the systems where operation capabilities are more > significant then power consumption, but keeping maximum frequency all the > time is not needed. > > 5. I have reduced default polling interval from 1/2 to 1/4 of second. > It is not so important for algorithm math now, but gives better system > interactivity. Thanks for this work! Can you consider MFC'ing this to RELENG_7 and maybe RELENG_6 please? Thanks. Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >