Need help solving Xorg slowness.

Ray Van Dolson rayvd at bludgeon.org
Wed Oct 31 21:58:21 PDT 2007


> I am going to get some additional oprofile dumps on this.  Initial ones
> show _very_ heavey calls to memcpy() when resizing Windows, changing
> tabs in Firefox, etc.

Here is the result of the last oprofile run:

CPU: Athlon, speed 1300.17 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Cycles outside of halt state) with a unit mask of 0x00 (No unit mask) count 100000
samples  %        image name               app name                 symbol name
36751    21.5741  libfb.so                 Xorg                     fbCompositeSolidMask_nx8x8888mmx
13643     8.0089  libc-2.6.so              Xorg                     memcpy
12643     7.4219  libgklayout.so           firefox-bin              (no symbols)
6685      3.9243  libmozjs.so              firefox-bin              (no symbols)
4429      2.6000  libxpconnect.so          firefox-bin              (no symbols)
4351      2.5542  libxpcom_core.so         firefox-bin              (no symbols)
3993      2.3440  libglib-2.0.so.0.1200.13 firefox-bin              (no symbols)
3986      2.3399  libgfx_gtk.so            firefox-bin              (no symbols)
3906      2.2930  libcairo.so.2.11.5       firefox-bin              (no symbols)

CPU: Athlon, speed 1300.17 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Cycles outside of halt state) with a unit mask of 0x00 (No unit mask) count 100000
CPU_CLK_UNHALT...|
  samples|      %|
------------------
    82884 48.6557 Xorg
        CPU_CLK_UNHALT...|
          samples|      %|
        ------------------
            45134 54.4544 libfb.so
            16800 20.2693 libc-2.6.so
            14573 17.5824 Xorg
             3567  4.3036 radeon_drv.so
             2113  2.5493 libxaa.so
              189  0.2280 mouse_drv.so
              165  0.1991 libXfont.so.1.4.1
              116  0.1400 libextmod.so
               77  0.0929 uhci_hcd
               50  0.0603 anon (tgid:6209 range:0x110000-0x111000)
               42  0.0507 libdbe.so
               24  0.0290 libglx.so
               14  0.0169 kbd_drv.so
               13  0.0157 libata
                7  0.0084 snd_emu10k1

Random resizing of an XFCE terminal was done as well as switching to
Firefox and shifting through various tabs and resizing Firefox.

CPU usage jumps to near 100% during this (per vmstat).

Do the calls to memcpy and fbCompositeSolidMask_nx8x8888mmx help at
all?

Any developer out there want to help me get some better information to
track this down? :)

Ray



More information about the xorg mailing list