* Re: X11 growing without (?) bounds...
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 13:13 ` William Thompson
` (2 subsequent siblings)
3 siblings, 2 replies; 11+ messages in thread
From: Steve Tate @ 1994-06-21 20:05 UTC (permalink / raw)
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.
> ...
> Has anyone else seen this problem, and is there a fix?
Ouch --- I just got an Alpha, and checked on this after seeing your posting.
The X server is indeed huge --- I rebooted and it shrunk back down, but
now seems to be growing again. So I can say "You're not alone", but I have
no idea how to fix it. It would be *REALLY**NICE* if someone at DEC would
patch this and put a patched binary server up for ftp somewhere (hint, hint).
I have another question though --- mwm is taking up absolutely huge amounts
of CPU time. I started a very computationally heavy job, and then checked
cpu usage --- it was pretty much split evenly between mwm and my job. Now
I certainly don't want to waste cpu cycles on a stupid window manager when
there is absolutely no window mapping (or even cursor movement) going on.
I changed to twm briefly to see what would happen, and twm uses almost no
cpu time, as expected. So what's wrong with mwm? Can this be fixed????
--
Steve Tate --- srt@cs.unt.edu | "Nationalism is an infantile sickness.
Dept. of Computer Sciences | It is the measles of the human race."
University of North Texas | -- A. Einstein
Denton, TX 76201 |
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: X11 growing without (?) bounds...
1994-06-21 20:05 ` Steve Tate
@ 1994-06-21 21:23 ` Steve Tate
1994-06-22 2:38 ` Wuxu Peng
1 sibling, 0 replies; 11+ messages in thread
From: Steve Tate @ 1994-06-21 21:23 UTC (permalink / raw)
Yes, I'm following up on my own post.
Earlier today I wrote (srt@zaphod.csci.unt.edu) wrote:
> I have another question though --- mwm is taking up absolutely huge amounts
> of CPU time.
I fixed this.... I had a resource set incorrectly that was just blowing
mwm's poor little mind. My fault though, not mwm's!
On the other hand, that still doesn't say anything about why the X server
is getting so damn big.
--
Steve Tate --- srt@cs.unt.edu | "Nationalism is an infantile sickness.
Dept. of Computer Sciences | It is the measles of the human race."
University of North Texas | -- A. Einstein
Denton, TX 76201 |
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: X11 growing without (?) bounds...
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
1 sibling, 1 reply; 11+ messages in thread
From: Wuxu Peng @ 1994-06-22 2:38 UTC (permalink / raw)
Steve Tate (srt@zaphod.csci.unt.edu) wrote:
: 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
[ deletion]
: Ouch --- I just got an Alpha, and checked on this after seeing your posting.
: The X server is indeed huge --- I rebooted and it shrunk back down, but
: now seems to be growing again. So I can say "You're not alone", but I have
: no idea how to fix it. It would be *REALLY**NICE* if someone at DEC would
: patch this and put a patched binary server up for ftp somewhere (hint, hint).
This really frightened me. I was thinking to upgrade to 2.0
and is about to do this. Now it looks like that I have to
put the upgrading on hold. I wishfully thought that 2.0
would be much better than 1.3a in terms of swapping space
management. It looks like just the opposite -- at least
1.3a does not grow that big here.
--
--wuxu peng (peng@pirates.cs.swt.edu)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: X11 growing without (?) bounds...
1994-06-22 2:38 ` Wuxu Peng
@ 1994-06-22 6:07 ` Karl Olav Lillevold
0 siblings, 0 replies; 11+ messages in thread
From: Karl Olav Lillevold @ 1994-06-22 6:07 UTC (permalink / raw)
To: Wuxu Peng
>>>>> "Wuxu" == Wuxu Peng <peng@pirates.cs.swt.edu> writes:
Wuxu> This really frightened me. I was thinking to upgrade to 2.0
Wuxu> and is about to do this. Now it looks like that I have to
Wuxu> put the upgrading on hold. I wishfully thought that 2.0
Wuxu> would be much better than 1.3a in terms of swapping space
Wuxu> management. It looks like just the opposite -- at least
Wuxu> 1.3a does not grow that big here.
The X server also grows in 1.3. All you have to do is configure it so
that it terminates (and restarts) each time someone logs out.
To do this you can for instance change the ':0' line in
/usr/lib/X11/xdm/Xservers to
:0 local /usr/bin/X11/X -bs -su -terminate
With this the X server stays below 9MB on my recently upgraded 2.0
system.
BTW: 2.0 uses a lot less memory than 1.3. No reason not to upgrade.
I upgraded without any problems. Had to recompile gcc and emacs,
though...
Karl
--
Karl Olav Lillevold \ Norwegian Telecom Research
Karl.Lillevold@nta.no \ Image Sequence Compression
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: X11 growing without (?) bounds...
1994-06-21 19:04 X11 growing without (?) bounds Randall Smith
1994-06-21 20:05 ` Steve Tate
@ 1994-06-22 13:13 ` William Thompson
1994-06-22 14:10 ` James A. Carhart
1994-06-22 13:45 ` Andrew Gallatin
1994-06-22 14:46 ` Torbj|rn Lindgren
3 siblings, 1 reply; 11+ messages in thread
From: William Thompson @ 1994-06-22 13:13 UTC (permalink / raw)
rsmith@wisp5.physics.wisc.edu (Randall Smith) writes:
>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
Have you tried modifying the file /usr/bin/X11/xdm/Xservers to include a
-terminate at the end. On the advice of somebody in DEC support, I modified
mine to look like
:0 local /usr/bin/X11/X -terminate
^^^^^^^^^^
This is the part I added.
Yours may or may not look the same. I rebooted after making this change. My
understanding is that there is a bug in xdm which causes it to grab memory
every time somebody logs in, but not give it back when they log out. This is
supposed to fix the problem.
Bill Thompson
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: X11 growing without (?) bounds...
1994-06-22 13:13 ` William Thompson
@ 1994-06-22 14:10 ` James A. Carhart
0 siblings, 0 replies; 11+ messages in thread
From: James A. Carhart @ 1994-06-22 14:10 UTC (permalink / raw)
In article <thompson.772290781@serts.gsfc.nasa.gov>,
William Thompson <thompson@serts.gsfc.nasa.gov> wrote:
>rsmith@wisp5.physics.wisc.edu (Randall Smith) writes:
>
>
>>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,
[ stuff deleted ]
>
>>Has anyone else seen this problem, and is there a fix?
>
[ more stuff deleted ]
>Have you tried modifying the file /usr/bin/X11/xdm/Xservers to include a
>-terminate at the end. On the advice of somebody in DEC support, I modified
>mine to look like
>
> :0 local /usr/bin/X11/X -terminate
> ^^^^^^^^^^
> This is the part I added.
>
As an alternative you can modify /usr/lib/X11/xdm/xdm-config to terminate
the xdm server each time someone logs out of the console with the following;
DisplayManager._0.terminateServer: true
That should do it,
jim carhart
PS - I have not explored whether this method is "better" or "worse" than the
method proposed in the included article. I just know that the method
shown (via xdm-config reset of server) does work.
--
James A. Carhart | "how are we doing, Sirs?"
Naval Research Lab, Code 6690 | - mst3k
4555 Overlook Avenue, SW | the views expressed here are
Washington, DC 20375-5343 | definitely not those of my employer
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: X11 growing without (?) bounds...
1994-06-21 19:04 X11 growing without (?) bounds Randall Smith
1994-06-21 20:05 ` Steve Tate
1994-06-22 13:13 ` William Thompson
@ 1994-06-22 13:45 ` Andrew Gallatin
1994-06-23 13:25 ` Stefan Monnier
1994-06-22 14:46 ` Torbj|rn Lindgren
3 siblings, 1 reply; 11+ messages in thread
From: Andrew Gallatin @ 1994-06-22 13:45 UTC (permalink / raw)
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 #
##############################################################################
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: X11 growing without (?) bounds...
1994-06-22 13:45 ` Andrew Gallatin
@ 1994-06-23 13:25 ` Stefan Monnier
0 siblings, 0 replies; 11+ messages in thread
From: Stefan Monnier @ 1994-06-23 13:25 UTC (permalink / raw)
In article <2u9f9g$sek@news.duke.edu>,
Andrew Gallatin <gallatin@isds.duke.edu> wrote:
> 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?).
I don't use dxpaint, but ctwm hangs from time to time if I use the
animation feature (and I do use it rather heavily since I animate my
background). More precisely, if I stay in a window for a while typing
(like playing xblast or writing mail in emacs) and make the window
disappear without leaving the window first (I use a key-short-cut to
kill the emacs window, f.ex), then ctwm tends to freeze in an Xlib
call (somewhere in GetGeometry if I remember correctly).
It's very hard to track down because of the asynchronous aspect of
animation (well, just the alarm signal, but still) but doesn't seem to
be a ctwm bug.
Stefan
PS: at least the bug appears a bit less often now that we have osf/1 2.0
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: X11 growing without (?) bounds...
1994-06-21 19:04 X11 growing without (?) bounds Randall Smith
` (2 preceding siblings ...)
1994-06-22 13:45 ` Andrew Gallatin
@ 1994-06-22 14:46 ` Torbj|rn Lindgren
1994-06-28 18:53 ` Dave Hill WhatGE
3 siblings, 1 reply; 11+ messages in thread
From: Torbj|rn Lindgren @ 1994-06-22 14:46 UTC (permalink / raw)
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.
[...]
>Has anyone else seen this problem, and is there a fix?
Well, it's documented in the release notes (at least the release notes
we got) that the X server grows (I don't have the RelNot here, but I
think that it said that it growed approximately 2.4 MB per reset).
The recommended fix is adding '-terminate' at the end of the :0 line
in /usr/lib/X11/xdm/Xservers.
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: X11 growing without (?) bounds...
1994-06-22 14:46 ` Torbj|rn Lindgren
@ 1994-06-28 18:53 ` Dave Hill WhatGE
0 siblings, 0 replies; 11+ messages in thread
From: Dave Hill WhatGE @ 1994-06-28 18:53 UTC (permalink / raw)
In article <2u9irg$qjd@nyheter.chalmers.se>, tl@cd.chalmers.se (Torbj|rn Lindgren) writes:
|> 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.
|> [...]
|> >Has anyone else seen this problem, and is there a fix?
|>
|> Well, it's documented in the release notes (at least the release notes
|> we got) that the X server grows (I don't have the RelNot here, but I
|> think that it said that it growed approximately 2.4 MB per reset).
|>
|> The recommended fix is adding '-terminate' at the end of the :0 line
|> in /usr/lib/X11/xdm/Xservers.
The memory problem is related to Adobe DPS level 1. It is a problem on
all vendors platforms.
This problem has been addressed in DPS level 2. This will be available
in OSF/1 v3.0 which will be available soon.
The Xserver in v3.0 also supports delayed loading of extensions, which
saves on startup time and memory consumed.
An earlier comment will still apply though.... Once a user has grown the
size of the X server using pixmaps and other memory consuming resources,
the 'running' size of the server may be smaller after a reset, but the
system stats will not show it.
^ permalink raw reply [flat|nested] 11+ messages in thread