tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Harinder Singh" <singhh () vrinet ! com>
To: tru64-unix-managers
Subject: SUMMARY: LAZY SWAPPING
Date: Thu, 15 May 1997 18:17:00 +0000	[thread overview]
Message-ID: <96078612210419.tru64-unix-managers.marc@archive.invalid> (raw)

  Hello!

  Here is the original question:

Harinder Singh writes:
 >   Has anyone heard of lazy swapping?
 
 >   What are the benefits of lazy swapping?

 >   How do we implement it?
 
Remove the symbolic link from /sbin/swapdefault to your primary swap
partition, for example:

SOLUTION 1:

A set of the same processes under the same conditions will typically use
much less swap space under lazy swapping than under conservative
swapping, since under lazy swapping swap space is only allocated for
those pages paged out of the process, rather than for the entire process
address space.  The only risk is that under lazy swapping a process may
be created and run for a while, then be unable to swap because of
insufficient swap space, and be killed by the kernel.  With conservative
swapping the swap space the process would need is allocated at the time
the process starts, so that if there is insufficient swap space it is
killed very early in its lifetime.
mv /sbin/swapdefault /sbin/swapdefault.disabled


SOLUTION 2:

In "normal" swapping space is allocated in the swap area upon process
creation.  If there is not enough space available the process creation
will fail.  In "lazy" swapping they swap area is not checked swapping
needs to be done. If there is no space available the process terminates

Now under Digital Unix the swappin mode is controled by the file
/sbin/swapdefault, if the file is not there lazy mode is used.

- Eric Crane
  Westinghouse Electric


Thanks to everyone for the response!!

Harry

                 reply	other threads:[~1997-05-15 18:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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