From: Ducrot Bruno Subject: Re: performance problems? Date: Tue, 19 Nov 2002 18:11:20 +0100 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20021119171120.GI691@poup.poupinou.org> References: <1037721583.1432.12.camel@sirius.strandboge.cxm> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1037721583.1432.12.camel-Ty44UuN9vPJ5T2F9fCU5s856D9/Od9gv@public.gmane.org> Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: James D Strandboge Cc: ACPI-Devel List-Id: linux-acpi@vger.kernel.org On Tue, Nov 19, 2002 at 10:59:43AM -0500, James D Strandboge wrote: > On Tue, 2002-11-19 at 09:54, Markus Gaugusch wrote: > > On Nov 19, Loic Jaquemet wrote: > > > i'am using 2.4.19 + around october patch ( I'll check that this evening ) > > > on sony vaio fx502 > > > [...] > > > when I fetch the /proc/acpi//state|info files, I get a 1-2 > > > second freeze| lag .. > > > [...] > > > I'm not sure, but i think i didn't have this problem on pre-september > > > patches .. > > No, it has been present before. I have an FX405 and can't use any battery > > monitor applet that reads the info file. Even a 'cat > > /proc/acpi/battery/BAT1/info' causes a noticable peak in my cpu monitor > > (kernel time). At least, it doesn't freeze keyboard anymore, thanks to the > > ACPI people! > > > > You want to poll /proc/acpi/battery/BAT1/state or whatever is correct > for your battery. Polling info requires interrupts with the BIOS I > think, and state is there for a quick poll. At least on my machine this > is the case. Yes and not. In fact, the ASL code contains some Notification() methods, then kernel will inform user space via /proc/acpi/event. Most of the time, those Notification() are generated by an interrupt (certainly an SCI). You should see some Notification() to the battery(ies) in a \_GPE.[EL]xx(), or in a _Qxx() from an embedded controller in that case. > > Perhaps someone would want to clarify the difference and why info causes > a hang and state does not. info give 'static' informations, as design capacity, last full technology, etc. It is 'huge', and do not need to be read often. state give the actual remaining capacity of the battery, present voltage, and so on. It is 'small' and also hold the 'variable' part of the battery. Now why cat'ing 'info' hang some systems is another problem (Should Not Happen (c)(tm))... -- Ducrot Bruno http://www.poupinou.org Page profaissionelle http://toto.tu-me-saoules.com Haume page ------------------------------------------------------- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html