CPU usage xorg 7.2 vs current

Andy Furniss lists at andyfurniss.entadsl.com
Fri Mar 13 05:30:36 PDT 2009


I am not sure whether this is a bug, feature or some build error on my 
part.

I've noticed that when playing an unscaled 576*704 25fps test stream 
with mplayer -vo x11 it is eating way too much CPU with current xorg. I 
tested git from November and current and am comparing to my base xorg 
7.2. The figures below are using the vesa driver, radeon[hd] give 
similar results.

CPU is an Athlon 2500 @ 2.1Ghz.

Xorg 7.2 top shows 75% idle, current git is only 5% idle. In both cases 
about 12% is mplayer the rest xorg.

I did a couple of oprofiles below, first is the current xorg.

The most obvious difference is that the 7.2 version uses libfb.so rather 
than pixman for some mmx stuff - could this be the reason?

Any suggestions welcome.

CPU: Athlon, speed 2126.28 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Cycles outside of halt state) with a 
unit mask of 0x00 (No unit mask) count 100000
warning: /usr/lib/locale/locale-archive is not in a usable binary format.
samples  %        app name                 symbol name
242774   77.9541 
/home/andy/Src/Xorg-git/modular/lib/xorg/modules/libshadow.so 
shadowUpdatePacked
19271     6.1879  /lib/libc-2.7.so         memcpy
7485      2.4034  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
yuv420_rgb32_MMX2
7099      2.2795  /home/andy/Src/Mplayer-svn/mplayer/mplayer mpeg_decode_mb
4547      1.4600  /no-vmlinux              /no-vmlinux
4385      1.4080  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
ff_simple_idct_add_mmx
2581      0.8288  /home/andy/Src/Mplayer-svn/mplayer/mplayer MPV_motion
1642      0.5272  /home/andy/Src/Mplayer-svn/mplayer/mplayer MPV_decode_mb
1414      0.4540  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
mpeg_decode_motion
1265      0.4062  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
put_pixels16_xy2_mmx
1263      0.4055  /home/andy/Src/Mplayer-svn/mplayer/mplayer demux_pattern_3
1183      0.3799  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
ff_simple_idct_put_mmx
730       0.2344  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
put_pixels16_x2_mmx2
726       0.2331 
/home/andy/Src/Xorg-git/modular/lib/xorg/modules/drivers/vesa_drv.so 
VESAWindowLinear
686       0.2203  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
add_pixels_clamped_mmx
596       0.1914  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
put_pixels8_x2_mmx2
585       0.1878  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
put_pixels16_mmx
555       0.1782  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
mpeg_decode_slice
519       0.1666  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
avg_pixels16_x2_mmx2
493       0.1583  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
put_pixels8_xy2_mmx
488       0.1567  /home/andy/Src/Mplayer-svn/mplayer/mplayer put_pixels8_mmx
471       0.1512  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
clear_blocks_mmx
407       0.1307  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
avg_pixels16_mmx2
404       0.1297  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
avg_pixels16_xy2_mmx2
387       0.1243  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
demux_mpg_fill_buffer
380       0.1220 
/home/andy/Src/Xorg-git/modular/lib/libpixman-1.so.0.15.1 pixman_blt_mmx
345       0.1108  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
put_pixels8_y2_mmx2
342       0.1098  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
avg_pixels8_x2_mmx2
278       0.0893  /home/andy/Src/Mplayer-svn/mplayer/mplayer prefetch_mmx2
267       0.0857  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
put_pixels16_y2_mmx2
257       0.0825  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
avg_pixels8_mmx2
244       0.0783  /home/andy/Src/Mplayer-svn/mplayer/mplayer fast_memcpy
237       0.0761 
/home/andy/Src/Xorg-git/modular/lib/libpixman-1.so.0.15.1 pixman_fill_mmx
210       0.0674  /lib/ld-2.7.so           do_lookup_x
179       0.0575 
/home/andy/Src/Xorg-git/modular/lib/xorg/modules/drivers/vesa_drv.so 
VESAGetRec
163       0.0523  /usr/local/bin/oprofiled odb_update_node
152       0.0488  /lib/libc-2.7.so         memset




CPU: Athlon, speed 2126.28 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Cycles outside of halt state) with a 
unit mask of 0x00 (No unit mask) count 100000
warning: /usr/lib/locale/locale-archive is not in a usable binary format.
samples  %        app name                 symbol name
20661    23.0453  /usr/lib/X11/modules/libshadow.so shadowUpdatePacked
19145    21.3543  /lib/libc-2.7.so         memcpy
7464      8.3253  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
yuv420_rgb32_MMX2
7228      8.0621  /home/andy/Src/Mplayer-svn/mplayer/mplayer mpeg_decode_mb
4390      4.8966  /no-vmlinux              /no-vmlinux
4354      4.8564  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
ff_simple_idct_add_mmx
2519      2.8097  /home/andy/Src/Mplayer-svn/mplayer/mplayer MPV_motion
1652      1.8426  /home/andy/Src/Mplayer-svn/mplayer/mplayer MPV_decode_mb
1345      1.5002  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
mpeg_decode_motion
1296      1.4456  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
put_pixels16_xy2_mmx
1293      1.4422  /home/andy/Src/Mplayer-svn/mplayer/mplayer demux_pattern_3
1125      1.2548  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
ff_simple_idct_put_mmx
830       0.9258  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
put_pixels16_x2_mmx2
675       0.7529  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
add_pixels_clamped_mmx
602       0.6715  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
put_pixels16_mmx
597       0.6659  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
put_pixels8_x2_mmx2
562       0.6269  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
clear_blocks_mmx
553       0.6168  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
mpeg_decode_slice
548       0.6112  /home/andy/Src/Mplayer-svn/mplayer/mplayer put_pixels8_mmx
519       0.5789  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
put_pixels8_xy2_mmx
518       0.5778  /usr/lib/X11/modules/libfb.so fbCopyAreammx
472       0.5265  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
avg_pixels16_x2_mmx2
385       0.4294  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
avg_pixels16_xy2_mmx2
380       0.4239  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
demux_mpg_fill_buffer
368       0.4105  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
avg_pixels16_mmx2
353       0.3937  /usr/lib/X11/modules/libfb.so 
fbCompositeSolidMask_nx8x8888mmx
342       0.3815  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
avg_pixels8_x2_mmx2
306       0.3413  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
put_pixels8_y2_mmx2
273       0.3045  /home/andy/Src/Mplayer-svn/mplayer/mplayer prefetch_mmx2
272       0.3034  /usr/lib/X11/modules/libfb.so fbSolidFillmmx
259       0.2889  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
put_pixels16_y2_mmx2
248       0.2766  /home/andy/Src/Mplayer-svn/mplayer/mplayer fast_memcpy
240       0.2677  /lib/ld-2.7.so           do_lookup_x
238       0.2655  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
avg_pixels8_mmx2
143       0.1595  /lib/libc-2.7.so         _int_malloc
133       0.1483  /lib/libc-2.7.so         memset
131       0.1461  /home/andy/Src/Mplayer-svn/mplayer/mplayer 
avg_pixels8_xy2_mmx2






More information about the xorg mailing list