public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* performance problems?
@ 2002-11-19 13:37 Thomas List
  2002-11-19 13:54 ` Loic Jaquemet
       [not found] ` <3DDA3E96.50906-vA1bhqPz9FBZXbeN9DUtxg@public.gmane.org>
  0 siblings, 2 replies; 14+ messages in thread
From: Thomas List @ 2002-11-19 13:37 UTC (permalink / raw)
  To: Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi all,

I'm working on a small battery applet for my laptop that reads out the 
battery status. As I have up to now no better idea I'm pulling the 
battery status (/proc/acpi/battery/...) every few seconds (anyone an 
idea of how to do this better?). Now a battery applet should consume as 
few CPU cycles as possible to not use up the battery itself. So I'm 
trying to monitor how much computing time my applet is using. For the 
moment I'm doing this using top (I know this is not perfect for that 
task ...). Now to the problem:

After the laptop is running for some time the CPU% value in top is 
getting higher and higher. It starts with around 0.3% in the beginning, 
after one hour it reaches 1,5% and I had it up to 3% and more after a 
longer time. I am quite sure this is not my applet - I can stop the 
program and restart it and still get the higher values. I tried to watch 
a video in this state and while my program was running I had short stops 
in the video play back that match the 2 seconds interval of pulling the 
battery status. Without my program running the stops disappeared.
Using a file system copy of /proc/acpi my program does not show at all 
on the top list.

I am using acpi 20021111 on a 2.4.20-rc1 kernel. The laptop is a Targa 
visionary 1600 from actebis (mobile athlon on a Via ProSavage KN133 
"TwisterK" board). I think I did not have such problems with an older 
acpi version (20021022 ???) - I will check this out).

Now could this be a problem with the acpi implementation or is this the 
result of a wrong usage of acpi?


Btw. - is there any documentation on the /proc/acpi directories besides 
Dominik Brodowski's documentation for /proc/acpi/processor?

Thanks for any help,

   Thomas




-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: performance problems?
@ 2002-11-19 19:22 Grover, Andrew
       [not found] ` <EDC461A30AC4D511ADE10002A5072CAD04C7A520-OU+JdkIUtvd9zuciVAfUoVDQ4js95KgL@public.gmane.org>
  0 siblings, 1 reply; 14+ messages in thread
From: Grover, Andrew @ 2002-11-19 19:22 UTC (permalink / raw)
  To: 'Nils Faerber', Thomas List
  Cc: Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

> From: Nils Faerber [mailto:nils-t93Ne7XHvje5bSeCtf/tX7NAH6kLmebB@public.gmane.org] 
> > Now could this be a problem with the acpi implementation or is this
> > the result of a wrong usage of acpi?
> 
> I think this is a problem with ACPI...

Yep.

Clearly we are doing something wrong. But, we're not sure what. It only
happens on some systems, so we're kinda in "change something, did that fix
it? no? try this." mode.

We changed mutex handling in the release yesterday - there's a *slight*
chance that was the needed fix. Can you try that patch?

Other than that, maybe the best way is to call
acpi_set_debug(ACPI_DEBUG_HIGH) in the battery driver right before we
evaluate _BIF, and see where it's spending all its time.

Regards -- Andy


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2002-12-16  8:06 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-19 13:37 performance problems? Thomas List
2002-11-19 13:54 ` Loic Jaquemet
     [not found]   ` <3DDA42A3.35F6BFE1-BNG0eM9rGRi0IRkH3yUr9EW4647UYGdYQQ4Iyu8u01E@public.gmane.org>
2002-11-19 14:54     ` Markus Gaugusch
     [not found]       ` <Pine.LNX.4.44.0211191552030.31104-100000-sxQ525G0OhRQK2oVCIMtW7NldLUNz+W/@public.gmane.org>
2002-11-19 15:59         ` James D Strandboge
     [not found]           ` <1037721583.1432.12.camel-Ty44UuN9vPJ5T2F9fCU5s856D9/Od9gv@public.gmane.org>
2002-11-19 17:11             ` Ducrot Bruno
2002-11-19 16:39         ` Thomas List
2002-12-16  8:06         ` Malte Thoma
     [not found] ` <3DDA3E96.50906-vA1bhqPz9FBZXbeN9DUtxg@public.gmane.org>
2002-11-19 14:01   ` Nils Faerber
2002-11-19 14:40   ` David Douard
     [not found]     ` <200211191540.58738.douard-nJJpUPIbDOA@public.gmane.org>
2002-11-19 15:23       ` Ducrot Bruno
2002-11-19 16:00   ` Thomas List
  -- strict thread matches above, loose matches on Subject: below --
2002-11-19 19:22 Grover, Andrew
     [not found] ` <EDC461A30AC4D511ADE10002A5072CAD04C7A520-OU+JdkIUtvd9zuciVAfUoVDQ4js95KgL@public.gmane.org>
2002-11-19 21:16   ` Thomas List
2002-11-19 22:29   ` Markus Gaugusch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox