On 10/23/02 2:17 PM, Dan Sugalski wrote: > Something in freeciv leaks memory badly, both on the X side *and* on the > Window Server side. (I've seen the WindowServer process have 250M+ mapped in, > which on a 384M system is a lot)
That's (probably) not indicative of a leak in the window server. First, if you look closely you should see that almost all of the window server's memory is marked as "shared." Specifically, the window buffers are shared with each application that has windows open. If an app opens a ton of windows and neglects to destroy them when they're no longer needed, then the buffers for those windows will pile up--both in the application's address space and the window server's address space. There's only one actual copy of each window buffer in memory, but it shows up in two places since it's shared. Second, my window server has a VSIZE of 250MB right now, and that's simply due to the number of windows I have open (i.e. no apps are "leaking" window buffers by not destroying windows that are no longer in use), so a large amount of memory used for window buffers is not necessarily a sign of a leak. It's just the way things work in Mac OS X, where every window is buffered. (If only we had video cards with ~1GB of VRAM... ;) -John
