Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.)
Subject: Re: Reserved Swap Memory
Date: 1998/02/24	[thread overview]
Message-ID: <6cvi3o$iqt@nntpd2.cxo.dec.com> (raw)
In-Reply-To: 34EDE899.CB280828@greenville.edu

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2094 bytes --]



In article <34EDE899.CB280828@greenville.edu>, John Matthews <jmatthew@greenville.edu> writes:

>When I do a swapon -s I get the following
>
> [ Irrelevant part delete... ]
>
>Total swap allocation:
>    Allocated space:        61262 pages (478MB)
>    Reserved space:         57792 pages ( 94%)
>    In-use space:            3007 pages (  4%)
>    Available space:         3470 pages (  5%)
>
>That reserved space is killing me! how do I adjust it,

1.  By using a large page/swap device.
2.  Using more page/swap devices.
3.  Switching to lazy reservation mode.  This could have serious
    drawbacks, which I'll note later.

>and where is it going?

Digital UNIX offers two modes page/swap reservation.  The default
mode reserves a page of page/swap space for every page of virtual
memory created.  This ensures that if the page needs to be written
out, there will be space for it.  The disadvantage of this method
is that the system virtual memory is limited to the amount of
page/swap space.

The other mode doesn't reserve space and thus makes no assurance
that there will be space should it be needed.  The advantage of
this method is that it allows the system virtual memory to be
the sum of available memory and page/swap space.  The disadvantage
of this method is that when there is no page/swap space left to
be allocated to a page that wants to be written out, the kernel
looks for idle processes to kill to free up space.

Neither method allocates space until a page needs to be written
out.  This is reflected in the difference between "In-use space"
and "Reserved space".� Neither method has any particular performance
advantage over the other, though "lazy" may allow more virtual
memory to be used, and thus allow more paging and worse overall
performance.

The system selects the mode depending on whether the symbolic link
/sbin/swapdefault exists and if the device it points also exists.
To switch to lazy, remove the link and reboot.

>Please help

Some of this should be documented in the System Management
documentation.

--
Alan Rollow				alan@nabeth.cxo.dec.com




      reply	other threads:[~1998-02-24  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-20  5:00 Reserved Swap Memory John Matthews
1998-02-24  5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes. [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