* Swap-Space on Alpha
@ 1993-11-01 17:52 Gerd Aschemann
1993-11-01 18:35 ` James Bonfield
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Gerd Aschemann @ 1993-11-01 17:52 UTC (permalink / raw)
Hi,
we have problems with swap space on our AXP 3000/400 (96 M RAM/212 M
Swap, OSF1 1.3). The memory usage always grows and NEVER shrinks.
Especially the X-Server had a size of 135 M after some days. After
rebooting, X now has 11 M with the first user logged on. Now the
kernel (Process 0) has 292 M. But swap seems to be normal.
Has anyone had the same problems. What can we do? Is it a bug in
/usr/bin/X or in the kernel???
Thanks,
--
Gerd Aschemann -- {ascheman,sysop}@isa.informatik.th-darmstadt.de
"Es fehlt immer ein Minimum, um das Maximum zu erreichen" W.Falin
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Swap-Space on Alpha
1993-11-01 17:52 Swap-Space on Alpha Gerd Aschemann
@ 1993-11-01 18:35 ` James Bonfield
1993-11-01 19:55 ` Eiji Hirai
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: James Bonfield @ 1993-11-01 18:35 UTC (permalink / raw)
In <2b3iddINNui4@rs18.hrz.th-darmstadt.de> ascheman@isa.informatik.th-darmstadt.de (Gerd Aschemann) writes:
> we have problems with swap space on our AXP 3000/400 (96 M RAM/212 M
> Swap, OSF1 1.3). The memory usage always grows and NEVER shrinks.
> Especially the X-Server had a size of 135 M after some days. After
> rebooting, X now has 11 M with the first user logged on. Now the
> kernel (Process 0) has 292 M. But swap seems to be normal.
In OSF 1.2 (I haven't got 1.3 yet) we had problems of memory leaks in the X
server (I vaguely remember reporting them to DEC). My fix to this was to force
the X server to reboot every time someone logs out. This can be done by adding
changing /usr/lib/X11/xdm/Xservers to something like
:0 local /usr/bin/X11/X -once
Also adding to the xdm-config file:
DisplayManager._0.terminateServer: true
I'm not sure which one of these did the trick (maybe both are needed), but I
can remember the suggested method of doing this (listed on this group before)
failed to work for me.
Hope this helps,
James
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Swap-Space on Alpha
1993-11-01 17:52 Swap-Space on Alpha Gerd Aschemann
1993-11-01 18:35 ` James Bonfield
@ 1993-11-01 19:55 ` Eiji Hirai
1993-11-01 20:34 ` Mike Iglesias
1993-11-04 8:14 ` Glenn Huxtable
3 siblings, 0 replies; 6+ messages in thread
From: Eiji Hirai @ 1993-11-01 19:55 UTC (permalink / raw)
ascheman@isa.informatik.th-darmstadt.de (Gerd Aschemann) writes:
: The memory usage always grows and NEVER shrinks.
I have the same problem with our mailserver (a DEC 3000/400 running OSF/1
1.3, lazy swap). Swapon -s reports increasingly large amounts of reserved
space use over time until I eventually need to reboot. I'm still trying to
isolate the factors that may be causing it.
: Especially the X-Server had a size of 135 M after some days. After
: rebooting, X now has 11 M with the first user logged on. Now the
: kernel (Process 0) has 292 M. But swap seems to be normal.
Just add a -terminate on your X server entry in /usr/lib/X11/xdm/Xservers,
like:
:0 local /usr/bin/X11/X -bs -su -terminate
Then restart your xdm process with
/sbin/init.d/xdm restart
--
hirai@cc.swarthmore.edu (Eiji Hirai) | Unix Geek for Swarthmore College
I don't speak for Swarthmore College | Computing Center, Swarthmore, PA, USA
"I post, therefore I am." -Rene Descartes on Usenet
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Swap-Space on Alpha
1993-11-01 17:52 Swap-Space on Alpha Gerd Aschemann
1993-11-01 18:35 ` James Bonfield
1993-11-01 19:55 ` Eiji Hirai
@ 1993-11-01 20:34 ` Mike Iglesias
1993-11-04 8:14 ` Glenn Huxtable
3 siblings, 0 replies; 6+ messages in thread
From: Mike Iglesias @ 1993-11-01 20:34 UTC (permalink / raw)
In article <2b3iddINNui4@rs18.hrz.th-darmstadt.de>,
Gerd Aschemann <ascheman@isa.informatik.th-darmstadt.de> wrote:
>Hi,
>
>we have problems with swap space on our AXP 3000/400 (96 M RAM/212 M
>Swap, OSF1 1.3). The memory usage always grows and NEVER shrinks.
>Especially the X-Server had a size of 135 M after some days. After
>rebooting, X now has 11 M with the first user logged on. Now the
>kernel (Process 0) has 292 M. But swap seems to be normal.
>
>Has anyone had the same problems. What can we do? Is it a bug in
>/usr/bin/X or in the kernel???
Neither, it's just the way it works. The X server gets memory for all
sorts of things as clients make requests, but when the memory is freed,
it isn't given back to the system for use.
Put the following line in your /usr/lib/X11/xdm/xdm-config file, send xdm a
HUP signal, and it will restart the X server when users log out.
DisplayManager*terminateServer: true
--
Mike Iglesias Internet: iglesias@draco.acs.uci.edu
University of California, Irvine BITNET: iglesias@uci
Office of Academic Computing uucp: ...!ucbvax!ucivax!iglesias
Distributed Computing Support phone: (714) 856-6926
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Swap-Space on Alpha
1993-11-01 17:52 Swap-Space on Alpha Gerd Aschemann
` (2 preceding siblings ...)
1993-11-01 20:34 ` Mike Iglesias
@ 1993-11-04 8:14 ` Glenn Huxtable
1993-11-04 14:59 ` Jim Gettys
3 siblings, 1 reply; 6+ messages in thread
From: Glenn Huxtable @ 1993-11-04 8:14 UTC (permalink / raw)
In <2b3iddINNui4@rs18.hrz.th-darmstadt.de> ascheman@isa.informatik.th-darmstadt.de (Gerd Aschemann) writes:
>Hi,
>we have problems with swap space on our AXP 3000/400 (96 M RAM/212 M
>Swap, OSF1 1.3). The memory usage always grows and NEVER shrinks.
>Especially the X-Server had a size of 135 M after some days. After
>rebooting, X now has 11 M with the first user logged on. Now the
>kernel (Process 0) has 292 M. But swap seems to be normal.
>Has anyone had the same problems. What can we do? Is it a bug in
>/usr/bin/X or in the kernel???
>Thanks,
>--
>Gerd Aschemann -- {ascheman,sysop}@isa.informatik.th-darmstadt.de
>"Es fehlt immer ein Minimum, um das Maximum zu erreichen" W.Falin
by now many people have told you about how the X server allocates memory and
never really free's it back to unix. That's just the way unix works, but there
are other problems to do with memory allocation (via malloc).
Malloc (at least under OSF 1.2 - DEC haven't sent me 1.3 dispite *many*
requests) appears to round up the size of your malloc request to the next
power of 2. We found (to our dismay) that a program malloc'ing 32Mb+1b
would grow by 64Mb! Alarming at the extreme, but possibly also a cumulative
memory hog when you are doing *lots* of small size mallocs. It may well be
that your X server is really only using about half (more or less) the memory
it really needs!
Glenn Huxtable
OSF - No thanks!
--
Email - glenn@cs.uwa.edu.au ,-_|\ glenn huxtable
phone - +61 9 380 2878 / \ dept of computer science
fax - +61 9 380 1089 *_,-._/ university of western australia
v
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Swap-Space on Alpha
1993-11-04 8:14 ` Glenn Huxtable
@ 1993-11-04 14:59 ` Jim Gettys
0 siblings, 0 replies; 6+ messages in thread
From: Jim Gettys @ 1993-11-04 14:59 UTC (permalink / raw)
The next release (not 1.3, but the release now in field test)
has a new, high performance (both from memory usage and CPU usage)
malloc in it. Should help lots. There has also been lots of other
work on general system memory usage.
- Jim Gettys
--
Digital Equipment Corporation
Cambridge Research Laboratory
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1993-11-04 14:59 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-11-01 17:52 Swap-Space on Alpha Gerd Aschemann
1993-11-01 18:35 ` James Bonfield
1993-11-01 19:55 ` Eiji Hirai
1993-11-01 20:34 ` Mike Iglesias
1993-11-04 8:14 ` Glenn Huxtable
1993-11-04 14:59 ` Jim Gettys
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox