From: mliggett@onyx.chem.indiana.edu (Matthew Liggett)
Subject: Re: swap erosion
Date: Mon, 6 Jun 1994 16:51:23 GMT [thread overview]
Message-ID: <MLIGGETT.94Jun6115123@onyx.chem.indiana.edu> (raw)
In-Reply-To: chris@rivers.dra.hmg.gb's message of 3 Jun 1994 12:41:56 GMT
>>>>> "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++(*)
next prev parent reply other threads:[~1994-06-06 16:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
1994-06-15 0:48 ` Squish
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