Google
  Web www.spinics.net

Re: High CPU usage with tabs and GTK

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


Hello,
Thank you for pointing out xscope, I didn't know about it.
I ran my app under xscope and the first thing I noticed was that there were many DAMAGE-Event related messages, about 90 groups of them per second. So on a hunch, I disabled DAMAGE in X and the problem of the constant chatter went away completely, the CPU went to 0%-1% with tabs in the app and gtk.events_pending() returns False as soon as the window is rendered just like I expect it to. The output of xscope is very verbose, so what arguments do you recommend I use to narrow down the output to something useful? I was attempting to find a repeating pattern that I could post here, but the damage events all seemed to be mixed in with a lot of stuff that doesn't have a short term repeat. So, here is a semi random excerpt from the log that looked like it might apply:
Thank you,
-Neil-



 6.35:                                    64 bytes <-- X11 Server
                                         ..............EVENT: DAMAGE-Event
                                                      detail: 02
                                                        data: 8b 09 20 06 8c 09
                                         ..............REPLY: GetGeometry
                                                       depth: 18
                                                        root: WIN 00000043
                                                           x: 4
                                                           y: 25
                                                       width: 00eb
                                                      height: 02bd
                                                border-width: 0000

6.33: Client -->  128 bytes
         ............REQUEST: XFIXES-Request
                minor opcode: 05
                        data: (3)
         ............REQUEST: DAMAGE-Request
                minor opcode: 03
                        data: (3)
         ............REQUEST: XFIXES-Request
                minor opcode: 0a
                        data: (1)
         ............REQUEST: CreatePixmap
                       depth: 18
                   pixmap-id: PXM 06200d76
                    drawable: DWB 06200061
                       width: 00ef
                      height: 02c1
         ............REQUEST: RenderRequest
               RENDERREQUEST: RenderCreatePicture
                     picture: PICTURE 06200d77
                    drawable: DWB 06200d76
                      format: PICTFORMAT 00000029
                  value-mask: 0
         ............REQUEST: RenderRequest
               RENDERREQUEST: RenderFillRectangles
                          op: Over
                        dest: PICTURE 06200d77
                       color: COLOR r:d5d5 g:d1d1 b:cfcf a:ffff
                  rectangles: (1)
         ............REQUEST: GetProperty
                      delete: False
                      window: WIN 06200061
                    property: ATM 0000019d
                        type: <CARDINAL>
                 long-offset: 00000000


On Mon, Feb 27, 2012 at 11:53 AM, Adam Jackson <ajax@xxxxxxxxxx> wrote:
On Fri, 2012-02-24 at 23:40 -0800, Neil Whelchel wrote:

> Here is a cut and paste of what strace shows, the messages repeat
> about 90 times per second when tabs are active.

strace output is unpleasantly difficult to read for this purpose.  Try
using xscope instead:

http://cgit.freedesktop.org/xorg/app/xscope/

- ajax

_______________________________________________
xorg@xxxxxxxxxxx: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: list-xorg@xxxxxxxxxxx

[X Forum]     [Nouveau Driver]     [Devices]     [XFree86]     [XFree86 Newbie]     [Site Home]     [IETF Annouce]     [Security]     [Fontconfig]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Video for Linux]     [Linux RAID]     [Linux Resources]

Powered by Linux