From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.)
Subject: Re: swap space - reserved space?
Date: 1997/12/09 [thread overview]
Message-ID: <66kf8l$3cb@nntpd2.cxo.dec.com> (raw)
In-Reply-To: 881590435.27414.0.nnrp-05.9e982017@news.demon.co.uk
In article <881590435.27414.0.nnrp-05.9e982017@news.demon.co.uk>, "Andrew Ireland" <andy@ascada.demon.co.uk> writes:
>
>In our dec 4100, system we have configured an RZ29B disk, partition rz9h as
>primary swap...
>Total swap:
>
> Allocated space 244459 pages
> Reserved space 229482 pages
>
> [ a couple more lines delete ]
>
>what is this "reserved space", who is it resevred by and for what reason?
For each page of virtual memory created, it should have an appropriate
amount of disk space somewhere on the system so it can be paged out.
Text (program instructions) may not need page/swap because the page
can be read back from the original program. Zero filled pages that
are never modified probably don't need page/swap either since the
contents of the page are obvious. Shared memory or memory created
via mmap(2) may be backed by the contents of a file. But, pretty
much everything else needs page/swap space.
The system offers the choice of whether page/swap space will be
reserved for the memory when it is created. The default mode
is to reserved page/swap as memory is created (as indicated by
the presense of /sbin/swapdefault pointing to a device which
exists). When page/swap reserved you are guaranteed that if
a page needs to be written out, there will be enough page/swap
for it.
The alternative to not reserving page/swap space is the possibility
that a page will need to be written and there won't be any space
available for it. In this case the kernel starts picking processes
to kill to free up space. There are cases where the amount of
virtual memory that will be used is well enough known that only
the extra amount of page/swap space will be configured, but usually
use of the alternate page/swap reservation mode is fraught with
peril.
So, you either need to reduce the amount of virtual memory that
you're trying to use, or configure more page/swap space.
>
>Andrew Ireland
--
Alan Rollow alan@nabeth.cxo.dec.com
next prev parent reply other threads:[~1997-12-09 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 ` Jim Granfield
1997-12-08 5:00 ` Brian Weaver
1997-12-08 5:00 ` Mat Butler
1997-12-09 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes. [this message]
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