[comp.windows.x] Swelling Server Problem

tmwalden@bbn.com (Tim M. Walden) (09/20/90)

I have written a rather large graphics process under X11R4 on a Sun 3/60.  I
have noticed that the size of my X server process grows enormously when I run
my software but never shrinks back down.  The pattern repeats itself each time
I run the graphics software but not as severely.  Is this a bug or feature?
Can it be rectified?

Any wisdom on this matter is greatly appreciated.

------------------------------------------------------------------------------
| tmwalden@bbn.com    |  "Riding down the rails on a crazy train..."         |
|                     |                                 -O. O.               |
|  Timothy M. Walden  | Not the views of BBN Inc...  Thought you should know.|
------------------------------------------------------------------------------

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (09/20/90)

This is nearly approaching another frequently asked question.
"grows enormously" gives me an idea that it's big, but you've
given absolutely no idea what your application does, or how much
"enormous" is, so what's there to say?  Similarly "never shrinks
back down" doesn't indicate whether you mean process size or resident
set size.  I'll assume process size.  In that case, please think about
what your vendor's system does.  Try an experiment, compile and run this
simple program:

main()
{
    free(malloc(8000000));
    pause();
}

See if the process size ever goes down.  If it doesn't, why would you
expect the server's process size to go down?