Xcfb growing and growing and grow....

Joel Gringorten gringort at wsl.dec.com
Sat Jan 26 12:03:35 AEST 1991


I'm suprised that nobody's pointed this out yet, but...

All X Servers have a tendancy to grow.  They allocate storage for a variety
of reasons resulting from client requests.  When this allocated storage is
free'd, the process doesn't grow any smaller.  So the server process size can 
only grow larger and not smaller.  There are some versions of Unix that can
do a negative sbrk, but this only works if you happen to have contiguous 
address space at the end of your process.  Fragmentation of the allocated 
storage space makes this less likely.  

The virtual address size (SIZE) of the server isn't particularly interesting 
anyway. What's interesting is the resident set size (RSS) which tells you how
much memory you're really hogging.  

Many X Servers, including DEC's, have memory leaks which will cause them to
hog more memory than they should.  DEC has been religous about tracking down
memory leaks in their servers over time.  This is to say that the more recent
the release, the fewer memory leaks a server is likely to have.  The next 
release of Ultrix will contain a server based on MIT X11R4, which uses much
less memory than previous releases due to reorganizing internal data structures.
But even it will have a tendancy to grow in virtual address space in time.  It's
just the nature of the beast.  

-joel



More information about the Comp.unix.ultrix mailing list