From owner-freebsd-acpi@FreeBSD.ORG Tue Jan 2 01:40:38 2007 Return-Path: X-Original-To: acpi@freebsd.org Delivered-To: freebsd-acpi@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2F19416A47B for ; Tue, 2 Jan 2007 01:40:38 +0000 (UTC) (envelope-from nate@root.org) Received: from root.org (root.org [67.118.192.226]) by mx1.freebsd.org (Postfix) with ESMTP id 15B0613C45A for ; Tue, 2 Jan 2007 01:40:38 +0000 (UTC) (envelope-from nate@root.org) Received: (qmail 21705 invoked from network); 2 Jan 2007 01:13:58 -0000 Received: from ppp-71-139-39-138.dsl.snfc21.pacbell.net (HELO ?10.0.5.59?) (nate-mail@71.139.39.138) by root.org with ESMTPA; 2 Jan 2007 01:13:58 -0000 Message-ID: <4599B1C9.7060706@root.org> Date: Mon, 01 Jan 2007 17:13:45 -0800 From: Nate Lawson User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Cyrille Szymanski References: <44AD76F5.8030302@root.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: acpi@freebsd.org Subject: Re: powerd project 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: Tue, 02 Jan 2007 01:40:38 -0000 Cyrille Szymanski wrote: > Hi Nate, Bruno, > > >> >> The main paper you need is: >> http://www-flash.stanford.edu/~kinshuk/MCN95.ps >> >> >> More here: >> http://wikitest.freebsd.org/powerd >> >> And the cited paper is here: >> http://citeseer.ist.psu.edu/lu00quantitative.html > > > As announced in my previous mails, I've been working on powerd methods. > Specifically I've been working on a matlab / scilab framework to evaluate > (by simulation) different approaches cited in the papers mentioned > above. My > findings are in line with results cited in aforementioned papers. Cyrille, this is great to hear. I've added acpi@ to the Cc. > In order to reach my goal w.r.t. powerd, I plan on leading the following > projects : > > - I'd like to collect data samples of real cpu activity. I plan on > developing a simplistic app which records cpu activity in a CSV file. > Volunteers would send me their CPU usage records along with a short > desctiption of their configuration and machine usage. I would analyse > this > data and select typical test workloads. Without "official" help from > freebsd > I foresee this will be a difficult task. > - I'd like to validate (or adapt) hypothesis I've made regarding CPU > behaviour. An application would reproduce, on client machines, CPU > workloads > read from the CSV files under various powerd saving modes to see if > results > are consistent with forecasts I've made. > - Finally I'd like to narrow the number of useful powerd approaches to > 2 or 3 and provide a profiling decision tool which would suggest the best > powerd mode to use. This step would result in an updated version of > powerd > (which could incorporate CPU brand/model info discrimination etc.) > > As always your comments are much welcome. This approach overall is good, but I don't think you need to collect data from others yet. It's probably best to start with just using your own system with various workloads. You can take the main loop of powerd(8) and just poll kern.cp_time every 100 ms or so (just longer than your CPU quantum) to get a good idea of load and save it to a file without changing frequencies. Then log that to a file and play it back to your various implementations to see what they'd do. Good luck, -- Nate