From: dsr@lns598.lns.cornell.edu (Daniel S. Riley)
Subject: Re: Low swap space on DEC 3000 Alpha
Date: 1995/04/02 [thread overview]
Message-ID: <DSR.95Apr2123352@lns100.lns.cornell.edu> (raw)
In-Reply-To: saunders-2903952328570001@caspar.che.wisc.edu
In article <saunders-0104951630320001@caspar.che.wisc.edu>,
saunders@castor.che.wisc.edu (Brian Saunders) writes:
saunders> You answered my question, more or less, but you haven't
saunders> explained to me how OSF/1 chooses which jobs to kill when
saunders> there is a swap error. It would seem a random scheme (which
saunders> is what is hinted) would be as dangerous, if not more, than
saunders> killing the offending process.
I would expect that what is killed *is* the "offending process", but
the notion of what is the offending process differs between eager and
lazy mode.
In "eager" mode, the offending process will always be one that is
requesting additional virtual memory, since all current allocations
have backing store pre-allocated.
In "lazy" mode, I would guess that it would be the next process to
fault on an unallocated page while the system is out of VM. The fault
could be on a page in an address space that was allocated long ago or
on a copy-on-write page, so while this selection is not random as far
as the OS is concerned, it might as well be for all the user (or
system administrator) can tell.
It could also conceivably be the process that owns the next page the
OS tries page out while out of VM, but that seems like a poorer and
less likely choice to me--but I suppose it all depends on when the OS
realizes it is completely out of VM and what the recovery path is at
that point.
You might think this should be fixable by having the OS kill any
process requesting address space after the total free drops below some
threshold, but the existence of sparsely populated address spaces and
COW pages complicates things--it isn't obvious to me that there is a
100% solution that isn't identical to "eager" mode.
--
Dan Riley Internet: dsr@lns598.lns.cornell.edu
Wilson Lab, Cornell University HEPNET/SPAN: lns598::dsr (44630::dsr)
"Distance means nothing/To me." -Kate Bush
prev parent reply other threads:[~1995-04-02 5:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-03-28 14:51 Low swap space on DEC 3000 Alpha Peter Schmatz
1995-03-29 5:00 ` Brian Saunders
1995-03-30 5:00 ` Dan Pop
1995-04-01 5:00 ` cherkus
1995-04-01 5:00 ` Brian Saunders
1995-04-01 5:00 ` Preston F. Crow
1995-04-02 5:00 ` Daniel S. Riley [this message]
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