Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: gallatin@isds.duke.edu (Andrew Gallatin)
Subject: Re: X11 growing without (?) bounds...
Date: 22 Jun 1994 13:45:20 GMT	[thread overview]
Message-ID: <2u9f9g$sek@news.duke.edu> (raw)
In-Reply-To: RSMITH.94Jun21140418@wisp5.physics.wisc.edu

In article <RSMITH.94Jun21140418@wisp5.physics.wisc.edu>,
Randall Smith <rsmith@wisp5.physics.wisc.edu> wrote:
>
>We're running OSF/1 V2.0 on a DEC3000/300LX, and having a problem with
>X.  At boot time, its memory size is about 15M (virtual), which is not
>a problem.  But after a few days running, it is now at 64M, and has
>grown to 110M at times, using nearly all our swap space and causing
>some nasty problems requiring a reboot.  (The actual resident size is
>only 1M, so that's not a problem.)  Our real memory is 32M, with 128M swap.
>
>I know that X does have this tendancy to grow due to the method of
>memory allocation on Unices, but this is a bit ridiculous.  Our other
>Alpha, running OSF/1 V1.3, stays at around 20M over a weeks of
>running, with about the same (or more) usage.
>
>Has anyone else seen this problem, and is there a fix?
>
>Thanks,
>Randy Smith
>rsmith@wisp5.physics.wisc.edu

I'm not sure that its caused by anything in OSF/1 V2.0.  We are
running OSF/1 V2.0 on two 3000/400 machines and one 3000/500x &
haven't seen the sort of problems you mention.  In fact, the user of
the 500x has been logged in for almost 3 weeks, and his X server looks
like this:

USER       PID %CPU %MEM   VSZ  RSS TT  S    STARTED         TIME COMMAND
root       383  0.0  1.1 11.0M 2.5M ??  S      Jun 06    11:24.36 /usr/bin/X11/X -terminate -auth /usr/lib/X11/xdm/A:0-aaalBa
(X is a soft link to Xdec)

He typically runs twm, xterm, emacs, xdvi, ghostview, some in-house
image viewing software, and dxpaint.  The only X related problems he's
had has been dxpaint hanging (anybody else seen this?).

Has the console user of your machine been looking at a lot of images,
or previewing postscript documents, or doing anything else that might
cause the X server to allocate & free large pixmaps of irregular size?
Perhaps you should look for other differences between your 1.3 machine
and your 2.0 machine besides the OS version.

The Ultrix FAQ talks a little about X server growth, and I think what
it says applies to OSF/1 also:
-----------------------------------------------------------------------------
G1. Why does the X server use so much memory?

Xws and the other other DEC X servers generally grow larger with
workload, not because of memory leaks.  When you start an X server,
its process is quite small.  As applications are started, the server
allocates memory for a variety of reasons to service requests from
clients.  An example of this is allocating a pixmap.  When the
resource is freed, the corresponding memory is freed back to the
malloc pool, but the server image doesn't get any smaller.  This is
true of any application where you malloc memory and then free it. If
your workload is consistent, server growth is asymptotic, growing
quickly at first, then tapering off.  In other words, if you exit the
application that caused the server to allocate a lot of memory, the
server size won't shrink when the application exits, but the server
won't grow any larger if you run the same application the same way
again.
-----------------------------------------------------------------------------

Good luck!

Drew

##############################################################################
#		Andrew Gallatin, System Administrator			     #
#	    Institute of Statistics and Decision Sciences		     #
#	  Box 90251, Duke University, Durham, NC 27708-0251		     #
#		    email:  gallatin@isds.duke.edu			     #
##############################################################################


  parent reply	other threads:[~1994-06-22 13:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-06-21 19:04 X11 growing without (?) bounds Randall Smith
1994-06-21 20:05 ` Steve Tate
1994-06-21 21:23   ` Steve Tate
1994-06-22  2:38   ` Wuxu Peng
1994-06-22  6:07     ` Karl Olav Lillevold
1994-06-22 13:13 ` William Thompson
1994-06-22 14:10   ` James A. Carhart
1994-06-22 13:45 ` Andrew Gallatin [this message]
1994-06-23 13:25   ` Stefan Monnier
1994-06-22 14:46 ` Torbj|rn Lindgren
1994-06-28 18:53   ` Dave Hill WhatGE
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox