Re: [orca-list] Orca being restless



Hi Jon,

Thanks for the suggestion. I ran orca in a profiler, and you were right; there is a function in pyatspi called releaseGIL() that adds an idle handler which sleeps for a short amount of time and then runs again. Apparently it is intended to allow other threads to run. It is very old code, so I'm surprised that I haven't noticed trouble with it before and wonder if there is something else at work, but that function is certainly involved.

On Tue, 31 Mar 2009, Jon wrote:

Hi Mike,

Yes I have noticed this too, but didnt really investigate whereabouts in
the code it is happening.
running the profiler  would no doubt shed light on the matter.
It sounds like somewhere we are sleeping for short amounts of time, and
then waking up again.

It might also not be Orca, it might be because the at-spi knows that it
has a client running (orca in this instance) so it might be in a state of
alertness.

It would be intresting to track this down.

-Jon

On Tue 31/03/2009 at 15:30:41, Mike Gorse wrote:
Hi all,

I noticed, over the last couple of days, that my laptop was drawing
around 20 w of power when it normally used to draw around 11-14 w.  I
remembered that maybe running powertop would tell me something
interesting.  Under "Top causes for wakeups", it gave the following:

66.0% (9082.9)            python : schedule_hrtimeout_range (hrtimer_wakeup)

I decided to try quitting Orca, and the power consumption very quickly
dropped back to around what I'd expect.  It is also using a significant
amount of cpu time, even when it isn't doing anything.  Has anyone else
seen this?  I'm using the newest Orca revision from svn and Python 2.6.
I tried setting my DebugLevel to ALL but didn't notice anything that I'd
consider od; just reactions to focus and state-changed events.

Thanks,
-Mike G-
_______________________________________________
Orca-list mailing list
Orca-list gnome org
http://mail.gnome.org/mailman/listinfo/orca-list
Visit http://live.gnome.org/Orca for more information on Orca.
The manual is at http://library.gnome.org/users/gnome-access-guide/nightly/ats-2.html
The FAQ is at http://live.gnome.org/Orca/FrequentlyAskedQuestions
Netiquette Guidelines are at http://live.gnome.org/Orca/FrequentlyAskedQuestions/NetiquetteGuidelines




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]