From: jg@crl.dec.com (Jim Gettys)
Subject: Re: OSF1 Swapping
Date: 6 Jan 1994 14:13:37 GMT [thread overview]
Message-ID: <2gh6ah$gkq@quabbin.crl.dec.com> (raw)
In-Reply-To: 2gh4fm$jtu@unixfe.rl.ac.uk
Immediate swap space allocation means that the system allocates
swap space on disk at the time the process allocates more VM;
if there are any problems, that process gets notified,
and possibly terminated (by default). This also means that the
total VM of all processes cannot exceed the available swap space.
"Lazy" or "deferred" allocation means that swap space is allocated
at the time the system actually needs to use more main memory for
some process (i.e. decides it has to page something out). This
means that the total VM of all processes can equal the sum of
all available swap space + main memory. This results in less disk
required to support the processes; you only need the amount of disk
space that is required to hold the VM being paged out.
The problem with "deferred" allocation is that at the time of allocation,
you don't know what process to penalize; the system must get memory
from somewhere (or would deadlock), so has to choose some process to
kill; and it isn't as smart as a person might be about what it chooses :-).
So lazy or deferred allocation is most suitable on single user systems
where you are the only person that would be affected; on a multiuser system
it is pretty unfriendly to have to terminate someone else's process for
reasons outside of their control. And on production systems where you
want to guarantee that once a process starts, it will continue indefinately,
you'd better be using immediate allocation. This is why we ship our OSF
with immediate allocation by default.
- Jim
--
Digital Equipment Corporation
Cambridge Research Laboratory
prev parent reply other threads:[~1994-01-06 14:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-01-06 13:42 OSF1 Swapping Dr J Gordon
1994-01-06 14:13 ` Jim Gettys [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