Complete.Org: Mailing Lists: Archives: freeciv-dev: February 1999:
Re: [Freeciv-Dev] Freeciv tickles XF memory leak?
Home

Re: [Freeciv-Dev] Freeciv tickles XF memory leak?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Daniel Burrows <Daniel_Burrows@xxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: Re: [Freeciv-Dev] Freeciv tickles XF memory leak?
From: Trent Piepho <xyzzy@xxxxxxxxxxxxxxxx>
Date: Fri, 19 Feb 1999 23:12:12 -0800 (PST)

On Fri, 19 Feb 1999, Daniel Burrows wrote:
>   I just noticed that every time I run an instance of Civclient (this is
> from the CVS snapshot), my X memory usage increases by about 4 megabytes and
> doesn't go down, even when I quit civclient.  Is this a bug in Freeciv or in
> the X server?

Are you sure the X server's memory stays up?  When the client starts up it
allocates quite a bit of X server memory for the pixmaps it uses.  Quite a bit
less than it used to, since it use to leave the intro pixmaps and a second
copy of the units/tiles in memory, but I fixed that many versions ago. 
Anyway, after you quit the X server's RSS should go back down.  For instance,
this is my X server before starting the client:

USER       PID %CPU %MEM  SIZE   RSS TTY STAT START   TIME COMMAND
root     12465  1.7 16.1 11052  4980  ?  S    16:51   6:30 /usr/X11R6/bin/Xwrapp

during:
root     12465  1.7 24.8 14208  7676  ?  S    16:51   6:33 /usr/X11R6/bin/Xwrapp

after :
root     12465  1.7 15.7 10936  4872  ?  S    16:51   6:33 /usr/X11R6/bin/Xwrapp


So memory usage goes up, but it should come back down.  The line to look at is
RSS, not SIZE.


[Prev in Thread] Current Thread [Next in Thread]