[Intel-gfx] Huge memory leaks with GEM

Shuang He shuang.he at intel.com
Tue Jul 7 04:21:13 CEST 2009


Hi Levitsky
    Could you check if your mesa includes following two commits, which 
should fix some serious memory leak with compiz?
       
http://cgit.freedesktop.org/mesa/mesa/commit/?h=mesa_7_5_branch&id=d027e8feff7d38cccadc6aaccc0454b21ce4dca0
       
http://cgit.freedesktop.org/mesa/mesa/commit/?h=mesa_7_5_branch&id=9dfce365c7f35ddea6d81b7f595ddcd6d35382a5

Thanks
    --Shuang

Maxim Levitsky wrote:
> I have recently tried the latest versions of graphics stack for my G965
> intel device.
>
>
> First I must say thanks! The quality of everything did improve
> significantly.
>
> I especially happy to see that GoogleEarth is finally usable. I remember
> it being very slow back when I tried the intel drivers last time (I have
> a nvidia card that I use most of the time on this system, and it is set
> to hit the trash as soon as intel drivers became usable - I know that
> performance will always be inferior, but as long as compiz, GE, and few
> simple games work, I agree to that)
>
> However, it appears that current GEM implementation doesn't free buffers
> at all.
>
> looking at  /sys/kernel/debug/dri/0/gem_objects reveals that more a GB
> of buffers are allocated, after few minutes of GE use. In same time
> usual signs of swapping appear. top confirms that GE uses more that a GB
> of memory (this system has just 1GB of memory)
>
> This is what I see there:
>
> 4614 objects
> 1152802816 object bytes
> 3 pinned
> 13762560 pin bytes
> 137949184 gtt bytes
> 260308992 gtt total
>
>
>
> Same behavier is observed with all games, and even compiz, just
> closing/opening windows triggers same behavior.
>
> Even xorg memory usage is increasing, due to that.
>
>
> I currently use latest -git versions of everything, including kernel
> I also use modesetting.
>
>
> How can I help with that?
>
>
> Best regards,
> 	Maxim Levitsky
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
>   




More information about the Intel-gfx mailing list