From owner-freebsd-stable@FreeBSD.ORG Thu Jan 12 13:26:02 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5896116A41F for ; Thu, 12 Jan 2006 13:26:02 +0000 (GMT) (envelope-from ivoras@fer.hr) Received: from pinus.cc.fer.hr (pinus.cc.fer.hr [161.53.73.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2712443D6D for ; Thu, 12 Jan 2006 13:25:57 +0000 (GMT) (envelope-from ivoras@fer.hr) Received: from [161.53.72.113] (lara.cc.fer.hr [161.53.72.113]) by pinus.cc.fer.hr (8.12.2/8.12.2) with ESMTP id k0CDPfFx027656; Thu, 12 Jan 2006 14:25:52 +0100 (MET) Message-ID: <43C6584F.10001@fer.hr> Date: Thu, 12 Jan 2006 14:23:27 +0100 From: Ivan Voras User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050921) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mike Jakubik References: <43C5A261.1020407@rogers.com> In-Reply-To: <43C5A261.1020407@rogers.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: stable@freebsd.org Subject: Re: powerd effectiveness X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jan 2006 13:26:02 -0000 Mike Jakubik wrote: > It seems that powerd does very little in terms of reducing heat, and > sacrifices performance while doing so. Am i wrong to assume that > CPU: AMD Athlon(tm) Processor (1210.79-MHz 686-class CPU) It is very unlikely this processor supports any kind of frequency modification by software. Basically there are two cases with modern processors: - Very modern processors, from Pentium M class onwards, support true frequency modification, which can and does offer significant savings. - Somewhat older processors, and the whole Celeron M line support only "CPU throttling", which is something like forcing idle cycles (like the "HLT" instruction) only on hardware level. I think this can be distinguished in FreeBSD by the second number in freq_levels being -1, like here: dev.cpu.0.freq_levels: 1403/-1 1315/-1 1227/-1 1139/-1 1052/-1 964/-1 876/-1 789/-1 701/-1 613/-1 526/-1 438/-1 350/-1 263/-1 175/-1 87/-1 (this second type of power management management support doesn't alter the physical frequency). I think the infrastructure used by powerd supports both cases, but won't get you much savings if the CPU doesn't support the first case. This information was gathered because I have a Celeron-based laptop and wanted to squeeze as much autonomy as possible - it may not be authoritative :) What I would like for FreeSBD to support is turning off of devices like WinXP does. Not only hard drives, but it seems that WinXP can somehow turn off network cards, USB controllers and/or devices and similar peripherals when running on batteries and those are not used (it seems it's not like disabling them completely but something else).