Subject: Re: further vm adventures
To: None <jiho@postal.c-zone.net>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-kern
Date: 04/26/1998 20:36:33
On Sun, 26 Apr 1998 20:03:33 -0000 (GMT) 
 jiho@postal.c-zone.net wrote:

 > > If you kill the X server, and restart, is your memory reclaimed?
 > 
 > I believe most or all of it is.  But since it can't be associated with the
 > server (or any other program, for that matter), program allocations per se
 > don't seem to explain it.

Huh?  If you kill the X server, and all the memory is suddenly reclaimed,
it certainly is associated with the X server!

Just because a client exits, it doesn't mean that whatever memory the
X server allocated to deal with that client is freed!

 > Please note that, in any case, the situation with UVM might be very different.
 > All of this is with the old Mach vm.  So you could argue that it's a problem
 > for the truly bored and curious.  I've been wrestling with it so long, though,
 > I'd really like to close the book on it.

I don't think this has anything to do with UVM or Mach VM.  I think what
you're seeing can be completely attributed to userland code, specifically
the X server implementation.

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                            Home: +1 408 866 1912
NAS: M/S 258-5                                       Work: +1 650 604 0935
Moffett Field, CA 94035                             Pager: +1 415 428 6939