From: Mat Butler <ButlerM@logica.com>
Subject: Re: swap space - reserved space?
Date: 1997/12/08 [thread overview]
Message-ID: <348C2648.1EC@logica.com> (raw)
In-Reply-To: 881590435.27414.0.nnrp-05.9e982017@news.demon.co.uk
As I understand it there are two modes of configuring swap - lazy and
greedy. Greedy mode decides at process start up exactly how much swap it
needs and reserves it. Lazy mode basically involves processes only going
to get more swap if and when it requires more and so has no need to
reserve any.
The main difference between these two modes is the way that they fall
down if they run out of swap. As greedy is default I assume this is the
safest. When you start to out of swap you get a nice little error
message and the offending process that tried to reserve the space is
allowed to run but if swap is exceeded to process is murdered. In lazy
mode I think things are more catastophic and a possible chain of
processes are killed. I'm pretty sure I was told that this can cause a
system crash.
So, if you want to avoid a crash and allow your processes to be lazy
ensure that you have plenty of swap.
Andrew Ireland wrote:
>
> In our dec 4100, system we have configured an RZ29B disk, partition rz9h as
> primary
> swap, /sbin/swapdefault points to this device, and yet in an operational
> environment
> we get the following:
>
> Total swap:
>
> Allocated space 244459 pages
> Reserved space 229482 pages
>
> Just from the above you can imagine that we are getting quite a lot of
>
> "swap space less than 10 percent free"
>
> what is this "reserved space", who is it resevred by and for what reason?
>
> Andrew Ireland
next prev parent reply other threads:[~1997-12-08 5:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-12-08 5:00 swap space - reserved space? Andrew Ireland
1997-12-08 5:00 ` Mat Butler [this message]
1997-12-08 5:00 ` Brian Weaver
1997-12-08 5:00 ` Jim Granfield
1997-12-09 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1997-12-13 5:00 ` john hall
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