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: Trent Piepho <xyzzy@xxxxxxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: Re: [Freeciv-Dev] Freeciv tickles XF memory leak?
From: Daniel Burrows <Daniel_Burrows@xxxxxxxxx>
Date: Sat, 20 Feb 1999 09:32:34 -0500

On Fri, Feb 19, 1999 at 11:12:12PM -0800, Trent Piepho was heard to say:
> 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.
> 

PID USER     PRI  NI  SIZE SWAP  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAN
  I looked at this again, and you're right that most of the X server gets
swapped out:

6426 root     -10 -10 21588  16M 4336  1508 S <     0  5.7  9.1   0:56 XF86_SV

  However, it seems to be going into swap rather than being deallocated.  I
only get this if I run more than one instance of civclient at once, and then
it doesn't *seem* to go up unless I run even more.  My guess is that the X
server is sitting on allocated memory for future use.  So this isn't a
problem.

  Daniel

-- 
"It is hard to think of anything less sentient than a pumpkin."
  -- Terry Pratchett, _Witches Abroad_

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