From owner-freebsd-stable@FreeBSD.ORG Mon Nov 21 18:38:01 2005 Return-Path: X-Original-To: freebsd-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 581F816A41F; Mon, 21 Nov 2005 18:38:01 +0000 (GMT) (envelope-from nate@root.org) Received: from www.cryptography.com (li-22.members.linode.com [64.5.53.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85ECB43D72; Mon, 21 Nov 2005 18:37:57 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.5.50] (ppp-71-139-0-107.dsl.snfc21.pacbell.net [71.139.0.107]) by www.cryptography.com (8.12.8/8.12.8) with ESMTP id jALIc0De010767 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 21 Nov 2005 10:38:00 -0800 Message-ID: <438213E5.70508@root.org> Date: Mon, 21 Nov 2005 10:37:25 -0800 From: Nate Lawson User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Hajimu UMEMOTO References: <4377775B.3080606@pldrouin.net> <20051114105854.GA1041@galgenberg.net> <4378CC14.2020109@pldrouin.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Pierre-Luc Drouin , acpi@freebsd.org, freebsd-stable@freebsd.org Subject: Re: Performance problem since updating from 6.0-RELEASE to 6.0-STABLE last friday 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: Mon, 21 Nov 2005 18:38:01 -0000 Hajimu UMEMOTO wrote: > Hi, > > >>>>>>On Mon, 14 Nov 2005 12:40:36 -0500 >>>>>>Pierre-Luc Drouin said: > > > pldrouin> Yep, smart battery is definately the problem. The performance of my > pldrouin> laptop is back to normal when I remove the xfce4-battery-plugin. > pldrouin> acpiconf -i loop reproduces the problem for me too. So it looks like > pldrouin> there is something wrong in smart battery. > > The cmbat has similar issue on some laptops. So, acpi_cmbat.c uses > cache for retrieval to reduce its influence, and its expiration > time is set by hw.acpi.battery.info_expire. > However, acpi_smbat.c doesn't use cache. So, I made a patch. Since I > don't have a laptop which has smbat, I cannot test it by myself. > Please test it and let me know the result. The patch looks good to me, you should commit please. -- Nate