[Intel-gfx] Memory leak using UXA acceleration and EXT_texture_from_pixmap
Garry Bodsworth
garry at camvine.com
Wed May 27 11:34:05 CEST 2009
Hi there,
I am having a problem with a memory leak when I use UXA in the Intel
drivers. Each time a pixmap is assigned to a texture in OpenGL using
XComposite (EXT_texture_from_pixmap) GEM objects are leaking.
I have tried various versions of the kernel and Intel driver, but I am
using the latest 2.6.30 kernel and Intel 2.7.1 driver. Also the Mesa
version is 7.4 and libdrm is 2.4.9. I have tried the latest git
version of all items.
The hardware I am using is a EeeBox B202 with a 1.6GHz Atom and an
Intel 945GM integrated graphics processor.
I've put together a small example of it going wrong (attached) in the
hope that someone can either diagnose it or tell me where to look so I
might be able to do so. As I am writing a kind of compositor I hit
the memory leak really hard, but it meant I could create a cut-down
example. It is attached to the email - building instructions are in
the comments.
I have found related issues in various bug trackers, all phrased in
slightly different ways, but people tend to notice the most when they
are using a compositing window manager. I've put a few of them at the
end of this email if anyone is interested.
The following two links are to commits that says they attempt to fix
the problem in xorg and mesa respectively:
http://cgit.freedesktop.org/xorg/xserver/commit/?id=7b6400a1b8d2f228fcbedf17c30a7e3924e4dd2a
http://cgit.freedesktop.org/mesa/mesa/commit/?id=fc6d89145df6fc7a1c2ce648b474c3f203ca87c7
Other than this issue (admittedly a show stopper) the performance is
really good because I can composite XVideo sources at a really good
framerate - also with no tearing thanks to whoever implemented
glXSwapBuffers.
Thanks,
Garry Bodsworth
RELATED ISSUES:
Driver -
memory leak: Keep resizing glxgears window with compiz will make X hang
http://bugs.freedesktop.org/show_bug.cgi?id=20704
Kernel -
i915: drm: xorg leaks drm objects massively
http://bugzilla.kernel.org/show_bug.cgi?id=13294
Ubuntu -
High load average, disk read, no apparent reason - 2.6.28-11
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/367377
[GM45] (Needs -intel 2.7.0) memory leak causes system to run out of
memory (UXA/EXA)
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/360319
Moblin -
memory leak while playing video stream
http://bugzilla.moblin.org/show_bug.cgi?id=2375
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simple.c
Type: application/octet-stream
Size: 3191 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20090527/abb4757a/attachment.obj>
More information about the Intel-gfx
mailing list