[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#326956: xserver-xorg: Memory leak



On Wed, 2005-09-07 at 14:43 +0200, Siep Kroonenberg wrote:
> On Wed, Sep 07, 2005 at 11:57:01AM +0200, David Mart?nez Moreno wrote:
> > El martes, 6 de septiembre de 2005 23:17, Siep Kroonenberg escribió:
> > > Loading a new background image on the root window usually increases
> > > the amount of memory taken up by Xorg by 2 or 3 mb, going by the RES
> > > column of top.

[...]

> Such behavior would be acceptable if X.org forgot old background
> images. But it doesn't. Try to successively load a series of
> background images, e.g. from the KDE wallpaper collection, and the
> memory occupied by Xorg will keep growing.

First of all, verify using something like xrestop that it's not actually
a client leaking references to the wallpaper pixmaps.

Even if that's ruled out, freeing memory that was allocated from the
heap can't always be returned to the system immediately because the heap
can only shrink down to the highest allocation still in use. If that's
the case, it should still be able to re-use a gap sometimes, especially
when you switch to a smaller wallpaper, in which case the memory usage
reported for the X server shouldn't increase.

I'm curious as to which of these might apply to your situation, if any.


-- 
Earthling Michel Dänzer      |     Debian (powerpc), X and DRI developer
Libre software enthusiast    |   http://svcs.affero.net/rm.php?r=daenzer




Reply to: