From: jamesn@iadfw.net (James Nuckolls)
Subject: Re: Swap space for Digital Unix
Date: 1999/01/26 [thread overview]
Message-ID: <0D8D3C4C5E6458AD.804D50B63FF20284.010108843F4E748B@library-proxy.airnews.net> (raw)
In-Reply-To: %lmr2.495$U75.52321@client.news.psi.net
On Tue, 26 Jan 1999 16:48:59 GMT, bart@CTI01.COMVERSE.COM <bart@CTI01.COMVERSE.COM> wrote:
> There is an internal debate between the support and development
>groups within my company regarding the amount of swap space required by
>DU 4.0x. The development group asserts that Digital/Compaq "will not
>support a system with swap space = memory size". Furthermore, Digital/Compaq
>and "common Unix rules of thumb" dictate that swap space should be 2-3 times
>memory size.
In the default swap mode ("immediate mode") OSF does want
at least swap space == memory size. This be becuase OSF pre-allocates
swapspace at the same time it allocates memory[1]. This is for two reasons:
1. Make sure there's enough swap space available, just in case.
2. Increase the speed of the swapper. The swapper no longer
needs to allocate space for pageouts during the pageout
process, as this has already been done.
In at least my case (where swapping causes annoying side effects, like
ringing phones...), paging is rare, and "immediate mode" does not make
much since (why burn the cycles, disk IO, and disk space to allocate
swap space I don't need?), I set the swapper for lazy, or over
commitment mode ("defered mode"). In this case, very little swap is
manageable[2][3].
How do you turn on lazy mode? Easy, delete /sbin/swapdefault and reboot.
[1] This method works great in theoy, if you have a machine with very
high memory comsumption. This would be a machine that will
(eventually) swap. Why? The act of swapping is now immeadite, as the
swap space is already allocated. In the machine that never swaps (like
all my OSF machines), this is bad.
[2] Note that I would strongly suggest swap space == memory size, as
there's no way you can get core files should your machine panic.
Versions of OSF >= 4.0d do write compressed core files, but I think
savecore preforms this operation.
[3] I have been able to build a machine with 512K of swap in the past.
Note that you MUST set the machine to lazy mode BEFORE you boot for the
first time off the new root disk.
next prev parent reply other threads:[~1999-01-26 5:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-26 5:00 Swap space for Digital Unix bart
1999-01-26 5:00 ` Waco Johnny D
1999-01-26 5:00 ` James Nuckolls [this message]
1999-01-27 5:00 ` Chris Petersen
1999-01-27 5:00 ` Nikola Milutinovic
1999-01-27 5:00 ` Jeffrey J. Potoff
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