[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: reducing power usage of Fedora - how you can help!
- From: Colin Walters <walters redhat com>
- To: debarshi ray gmail com, Development discussions related to Fedora Core <fedora-devel-list redhat com>
- Cc:
- Subject: Re: reducing power usage of Fedora - how you can help!
- Date: Fri, 10 Aug 2007 15:24:04 -0400
On Sat, 2007-08-11 at 00:43 +0530, Debarshi 'Rishi' Ray wrote:
> >> http://rishi.fedorapeople.org/powertop.txt
> >>
> >> I had Firefox and XChat-GNOME running.
>
> > What particular python process was that?
All pygtk2 programs in Fedora right now have a 10Hz loop:
/* This code (pygtk main watch) was copied with minor changes from
* pygobject/gobject/pygmainloop.c */
static gboolean
pygtk_main_watch_prepare(GSource *source,
int *timeout)
{
/* Python only invokes signal handlers from the main thread,
* so if a thread other than the main thread receives the signal
* from the kernel, PyErr_CheckSignals() from that thread will
* do nothing. So, we need to time out and check for signals
* regularily too.
* Also, on Windows g_poll() won't be interrupted by a signal
* (AFAIK), so we need the timeout there too.
*/
#ifndef PLATFORM_WIN32
if (pyg_threads_enabled)
#endif
*timeout = 100;
return FALSE;
}
This wasn't updated from the corresponding gobject mainloop change which
dropped it to 1Hz.
Of course, ideally someone figures out how to kill this loop entirely.
A relevant bug is:
http://bugzilla.gnome.org/show_bug.cgi?id=154779
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]