* swap erosion
@ 1994-06-01 15:42 Gary P. Grim
1994-06-02 16:10 ` Andrew Draskoy
0 siblings, 1 reply; 5+ messages in thread
From: Gary P. Grim @ 1994-06-01 15:42 UTC (permalink / raw)
So here it is again. The slow erosion of available swap space as
processes (I believe X-clients if I remember correctly) do their thing and
exit. I can't remember all the details since this sort of thing tends to get
stored in volatile memory, but I seem to remember some banter regarding
the text area not being released. Could I please get a refresh. I am currently
running OSF1/2.0 on 3000/400's. After a period of time our machines begin
to announce that "swap is below 10% free" and performance begins to degrade.
Any suggestions?
Thanks,
Gary
--
------------------------------------------------------------------------------
Gary Grim | Internet: grim@charm.ucdavis.edu
Dept. of Physics | Phone: (916) 752-0404
U.C. Davis, Davis CA | HEP Office: (916) 752-1818
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: swap erosion
1994-06-01 15:42 swap erosion Gary P. Grim
@ 1994-06-02 16:10 ` Andrew Draskoy
1994-06-03 12:41 ` Christopher Samuel
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Draskoy @ 1994-06-02 16:10 UTC (permalink / raw)
: After a period of time our machines begin to announce that
: "swap is below 10% free" and performance begins to degrade.
: Any suggestions?
: Gary Grim | Internet: grim@charm.ucdavis.edu
We had that problem as well. There may well still be problems along
these lines, but one thing I discovered is that DEC OSF1 has two options
for swapping, and the default one is a real hog for your swap space.
The method can be changed by removing the symbolic link "/sbin/swapdefault".
This is of course not documented or refered to in any way in the UNIX
manual pages provided with OSF. Thanks a lot DEC. See your paper documents
for more specific information.
If anyone from the DEC OSF team is reading this, PLEASE document the
basics of all system features in the UNIX manual pages. Putting more
detailed, tutorial-style, and long-winded explanations in vendor-specific
documents is great, but minimal explanations of ALL system files and
program options should go into the on-line UNIX manual pages. These
should have enough concise information for an expert to get the job
done. Right now there's a lot of "See such-and-such-a-document to
find any useful information at all", and at least this one very
important piece of system configuration information (swapdefault)
that is not even hinted at _anywhere_ in the manuals!
Andrew Draskoy
andrew@bransle.ucs.mun.ca
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: swap erosion
1994-06-02 16:10 ` Andrew Draskoy
@ 1994-06-03 12:41 ` Christopher Samuel
1994-06-06 16:51 ` Matthew Liggett
0 siblings, 1 reply; 5+ messages in thread
From: Christopher Samuel @ 1994-06-03 12:41 UTC (permalink / raw)
In article <2sl08s$1hl@coranto.ucs.mun.ca> of comp.unix.osf.osf1,
andrew@bransle (Andrew Draskoy) doodled:
> The method can be changed by removing the symbolic link
> "/sbin/swapdefault". This is of course not documented or refered to in
> any way in the UNIX manual pages provided with OSF. Thanks a lot DEC.
> See your paper documents for more specific information.
I suspect this also caused a couple of panic's on our OSF/1 2.0 Alpha
here. From reading the runes I guess the sequence of events to be
something along the lines of:
Someone tries to start a process
Kernel tries to pre-allocate swap for it
Kernel finds no swap available to pre-allocate
Kernel tries to kill process
Whilst signalling the process the kernel tries to allocate some memory
The alloc fails
The kernel panic's
crash + burn :-(
Since I've turned off DECs braindead swap preallocation we've not had a
recurrence of it.
Chris
--
Christopher Samuel Phone: +44 684 895311 chris@rivers.dra.hmg.gb
N-115, Defence Research Agency, St Andrews Road, Great Malvern, England, UK
"A hollow heart and an empty head make the streets run red" - The Levellers
PGP key available from keyservers.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: swap erosion
1994-06-03 12:41 ` Christopher Samuel
@ 1994-06-06 16:51 ` Matthew Liggett
1994-06-15 0:48 ` Squish
0 siblings, 1 reply; 5+ messages in thread
From: Matthew Liggett @ 1994-06-06 16:51 UTC (permalink / raw)
>>>>> "chris" == Christopher Samuel <chris@rivers.dra.hmg.gb> writes:
chris> In article <2sl08s$1hl@coranto.ucs.mun.ca> of
chris> comp.unix.osf.osf1, andrew@bransle (Andrew Draskoy) doodled:
>> The method can be changed by removing the symbolic link
>> "/sbin/swapdefault".
Terminology notes:
The method of swap allocation with the /sbin/swapdefault symlink in
place is reffered to "immediate" mode.
The other method (without the symlink there) is "deferred" mode.
Immediate mode is the default configuration (atleast on 1.3 systems).
In immediate mode, the kernel attempts to determine and pre-allocate the
amount of space required for each process and to play a "keep-ahead"
kind of game.
In deferred mode, swap space is allocated dynamically based on the needs
of processes. It is possible to run out of free pages in this mode. In
this case, the system will kill a process to free a page(s).
chris> I suspect this also caused a couple of panic's on our OSF/1
chris> 2.0 Alpha here. From reading the runes I guess the sequence
chris> of events to be something along the lines of:
chris> Someone tries to start a process Kernel tries to pre-allocate
chris> swap for it Kernel finds no swap available to pre-allocate
chris> Kernel tries to kill process Whilst signalling the process
chris> the kernel tries to allocate some memory The alloc fails The
chris> kernel panic's
This does not jive. In immediate mode, as I understand the DEC
documentation, the system will not randomly kill processes. This only
happens in deffered mode.
chris> Since I've turned off DECs braindead swap preallocation we've
chris> not had a recurrence of it.
This is interesting. We had to turn off immediate mode because we
did not have swap >= phys. RAM. You cannot get total use out of your
RAM in immediate mode without enough swap space to match it (braindead).
Now that we have ~2xRAM for swap space, I should probably switch back to
deferred just to avoid the risk of randomly killing processes.
Comments? Have I got it all jumbled?
--
matt liggett '59 Austin Mini 850 (If only it ran...)
(mliggett@indiana.edu) '75 Suzuki GT250 (Mutant Chainsaw)
-= GAT =- '79 Honda Civic 1200 (Rust Never Sleeps)
d-- -p+ c++(+++) l++ u++ e+ m* s--/ n+(---) h-- f- !g w++ t+ r(-) y++(*)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: swap erosion
1994-06-06 16:51 ` Matthew Liggett
@ 1994-06-15 0:48 ` Squish
0 siblings, 0 replies; 5+ messages in thread
From: Squish @ 1994-06-15 0:48 UTC (permalink / raw)
I've also noticed on OSF 1.3 that xdm has a memory leak. This has been
verified by other sources. The approach I have taken is (3) fold.
1) Get rid of the swapdefault link.
2) /usr/lib/X11/xdm/Xservers change the Xserver command from:
:0 local /usr/bin/X11/X
to
:0 local /usr/bin/X11/X -terminate
This tells xdm to quit and restart itself whenever anyone logs out on the
console. Thus freeing up all of its leaked memory.
3) Some processes get stuck on our boxes. Appears that if people log in
remotely and startup lots of jobs and then just simply exit their local
box all the remote processes get stuck. I run the following every night
via cron:
#! /bin/csh -f
echo "seek and destroy orphaned processIs"
foreach i (`ps -aef | grep "\?\?" | grep -v root | sort -nr +1 | cut -c9-15`)
echo "killing pid $i"
kill -9 $i &
end
Good luck. I'd like to take this opportunity to thank DEC for an ok OS with
wonderful BSD and SYS V functionality, good realtime support, and REALLY killer
hardware.
- mike
--
The human brain is a complex organ with the wonderful power of enabling man to
find reasons for continuing to believe whatever it is that he wants to believe.
-Voltaire
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1994-06-15 0:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-06-01 15:42 swap erosion Gary P. Grim
1994-06-02 16:10 ` Andrew Draskoy
1994-06-03 12:41 ` Christopher Samuel
1994-06-06 16:51 ` Matthew Liggett
1994-06-15 0:48 ` Squish
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox