From owner-freebsd-acpi@FreeBSD.ORG Fri Sep 7 20:44:04 2007 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E874616A41B for ; Fri, 7 Sep 2007 20:44:04 +0000 (UTC) (envelope-from cnszym@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.freebsd.org (Postfix) with ESMTP id 783DC13C428 for ; Fri, 7 Sep 2007 20:44:03 +0000 (UTC) (envelope-from cnszym@gmail.com) Received: by nf-out-0910.google.com with SMTP id k4so471389nfd for ; Fri, 07 Sep 2007 13:44:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=lFza9SLFTeZJumDyNzSGTXzjlLZmXZRWr4JZAD63vo8=; b=jvRzNuHjPjrxHNzN21aIAjZi+Kpv2XwdkHXavKVGADmGbbLrfhfYAq/foFVbxxzVCOeBE+9Ciqgqzca9OBaQRpqv3UOBRcBk6CFzbsegvemKjaX9PI58++AdpT2nm87kwy3j5ZVYkOr5HNtlgfV8zU5Ctus2wjvd+WACEDQjhBk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VMnC/C9Lr4oUMn77YZDkZjogcfMa50CAzAyjuxdOpE+5csd0vVyPMMQuPUKEllcdGzFLv6eSJ3WUBBetfbyuzAKXRZCrUjB2WjkByLMQ5s8nKzg0Wva+5YOkA35BrxdVJrAktydzNtvkOssvzYKwUdAVCvHkJ9Shg3E5KrjlSJ4= Received: by 10.78.130.6 with SMTP id c6mr908613hud.1189196093921; Fri, 07 Sep 2007 13:14:53 -0700 (PDT) Received: by 10.78.143.3 with HTTP; Fri, 7 Sep 2007 13:14:53 -0700 (PDT) Message-ID: Date: Fri, 7 Sep 2007 22:14:53 +0200 From: "Cyrille Szymanski" To: "William Grzybowski" , freebsd-acpi@freebsd.org In-Reply-To: <632825b40709071127v63100e16i4fe4c006f96fd3ff@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <632825b40709062006n6d612c73r13c03aa16a6d5c2d@mail.gmail.com> <46E0F352.4090604@root.org> <632825b40709071127v63100e16i4fe4c006f96fd3ff@mail.gmail.com> Cc: Subject: Re: powerd algorithms X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Sep 2007 20:44:05 -0000 > Hi Cyrille, > > Would be nice if you can share you research about powerd with me, i am really interested in this subject... My biggest concerns (and why I more or less lost interest in this project) are that : 1. I believe FLAT to be very close to, if not the best universal algorithm possible; 2. I was unable to find a decent way to quantify the power savings of each approach other than by simulation or using current probes. Power consumption depends both on frequency and workload and since I have no idea how CPUs behave in practice I cannot design any smarter solution. The best solution is likely to be something specific to each CPU model/brand (see bullet 1). This would require building a database of the optimum settings for each CPU model. I am not sure we find enough people willing to experiment, unless... (see bullet 2). Note: I am not convinced that my laptop uses less power when running at its lowest frequency when I see the heat that it emits in that mode. > Actually the powerd has 3 modes right? [min,max,adaptive] > The adaptive uses the relation about idle and total usage, but just one by one, i was thinking in use a short historical of this cpu usage related by idle and create some profiles over it (like ondemand and conservative in linux)... AFAIK the 'adaptive' mode increases by two steps and decreases by one step (this would be more responsive). If you look at CVS revisions for powerd.c you'll see what has been tried over the years (rev 1.9 for example) http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/powerd/powerd.c Have you checked the research papers describing approaches such as PAST, FLAT etc. ? I did not investigate the linux 'ondemand' and 'conservative' modes but maybe they are worth a try. As I understand it, FreeBSD lacks only the 'ondemand' mode ? Bye -- Cyrille