2012/3/24 Lluís Batlle i Rossell <vi...@viric.name>
> Hello, > > I'm trying a simple test... go to youtube with firefox and play a video. > It uses to take quite enough of X cpu, firefox cpu and adobe flashplayer > cpu. > > Looking at the 'X' part, all the cpu is used in memcpy. > > It looks like all painting goes through XAAPutImageFallback, which I > imagine > is not the fastest path. > > It's xorgserver 1.9.5, with the openchrome 0.2.905. > > This is the kind of backtrace I get: > > (gdb) bt > #0 0xb732a0a6 in __memcpy_ia32 () > from /nix/store/yb7w3wpd3d5cn0qs6y7l4lx7zcxg0z8m-glibc-2.13/lib/libc.so.6 > #1 0x00000078 in ?? () > #2 0xb6df1db1 in fbBlt (srcLine=0xaa0b1c00, srcStride=2560, srcX=0, > dstLine=0xb2e89000, > dstStride=4096, dstX=608, width=2560, height=348, alu=3, pm=4294967295, > bpp=32, reverse=0, > upsidedown=0) at fbblt.c:93 > #3 0xb6df2ceb in fbBltStip (src=0xaa0b1c00, srcStride=640, srcX=0, > dst=0xb2e89000, > dstStride=1024, dstX=608, width=20480, height=348, alu=3, > pm=4294967295, bpp=32) > at fbblt.c:944 > #4 0xb6df7e68 in fbPutZImage (pDrawable=0x8e79d50, pClip=0x8e79d80, > alu=3, pm=4294967295, > x=19, y=273, width=640, height=348, src=0xaa0b1c00, srcStride=640) at > fbimage.c:156 > #5 0xb6df86b6 in fbPutImage (pDrawable=0x8e79d50, pGC=0x8e60530, > depth=24, x=19, y=273, > w=640, h=348, leftPad=0, format=2, pImage=0xaa0b1c00 "") at > fbimage.c:105 > #6 0xb6d86bb2 in XAAPutImageFallback (pDraw=0x8e79d50, pGC=0x8e60530, > depth=24, x=0, y=6, > w=640, h=348, leftPad=0, format=2, pImage=0xaa0b1c00 "") at > xaaFallback.c:64 > #7 0xb6d991b0 in XAAPutImage (pDraw=0x8e79d50, pGC=0x8e60530, depth=24, > x=0, y=6, w=640, > h=348, leftPad=0, format=2, pImage=0xaa0b1c00 "") at xaaImage.c:519 > #8 0xb6dd0a95 in cwPutImage (pDst=0x8e79d50, pGC=0x8e60530, depth=24, > x=<value optimized out>, y=<value optimized out>, w=640, h=348, > leftPad=0, format=2, > pBits=0xaa0b1c00 "") at cw_ops.c:177 > #9 0x08125fea in damagePutImage (pDrawable=0x8e79d50, pGC=0x8e60530, > depth=24, x=0, y=6, > w=640, h=348, leftPad=0, format=2, pImage=0xaa0b1c00 "") at damage.c:901 > #10 0x080fee48 in ProcShmPutImage (client=0x8e1a2d8) at shm.c:942 > #11 0x081000af in ProcShmDispatch (client=0x8e1a2d8) at shm.c:1204 > #12 0x08071e07 in Dispatch () at dispatch.c:432 > #13 0x08064f3c in main (argc=15, argv=0xbff81434, envp=0xbff81474) at > main.c:291 > > Any idea on reducing the cpu usage for video playing? Maybe it's just this > xorg version? > > I wonder how mplayer can play the same video at 4% of cpu usage, while the > flash player looks to take 40% cpu (only decoding, no?), firefox 30%, and > the rest X. > > Attached, dmesg and xorg logs. > > Regards, > Lluís. > > _______________________________________________ > openchrome-users mailing list > openchrome-users@openchrome.org > http://wiki.openchrome.org/mailman/listinfo/openchrome-users > Main page: > http://www.openchrome.org > Wiki: > http://wiki.openchrome.org > User Forum: > http://wiki.openchrome.org/tikiwiki/tiki-view_forum.php?forumId=1 > Are you sure you are not using xv or xvmc with mplayer? This could affect CPU use, since it uses the GPU for a part of the decoding.
_______________________________________________ openchrome-users mailing list openchrome-users@openchrome.org http://wiki.openchrome.org/mailman/listinfo/openchrome-users Main page: http://www.openchrome.org Wiki: http://wiki.openchrome.org User Forum: http://wiki.openchrome.org/tikiwiki/tiki-view_forum.php?forumId=1