qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] 100% host cpu with gtk3


From: Daniel P . Berrangé
Subject: Re: [Qemu-devel] 100% host cpu with gtk3
Date: Wed, 6 Jun 2018 12:37:52 +0100
User-agent: Mutt/1.9.5 (2018-04-13)

On Wed, Jun 06, 2018 at 06:43:57PM +0800, Fam Zheng wrote:
> Hi Gerd,
> 
> When using the gtk frontend, it seems there is a busy loop in libgtk 
> repeatedly
> calling recvmsg, causing 100% cpu on the main thread. This started to appear
> after I upgraded to Fedora 28. Is this a known problem?
> 
> Any hints on how to track it down?

GLib has systemtap probes registered in its dispatch code. These probes
will include the name of the GSource. You could possibly use this to
identify which GSource is firing too often.

eg in gmain.c in glib code there are these events to hook into:

          TRACE (GLIB_MAIN_BEFORE_DISPATCH (g_source_get_name (source), source,
                                            dispatch, callback, user_data));
          need_destroy = !(* dispatch) (source, callback, user_data);
          TRACE (GLIB_MAIN_AFTER_DISPATCH (g_source_get_name (source), source,
                                           dispatch, need_destroy));



Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



reply via email to

[Prev in Thread] Current Thread [Next in Thread]