From: havoc@apk.net (Chris Petersen)
Subject: Re: Swap space for Digital Unix
Date: 1999/01/27 [thread overview]
Message-ID: <78npa6$3qj$1@plonk.apk.net> (raw)
In-Reply-To: 0D8D3C4C5E6458AD.804D50B63FF20284.010108843F4E748B@library-proxy.airnews.net
Excellent information, right on track!
James Nuckolls (jamesn@iadfw.net) wrote:
: 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.
:
Most engineering applications (CAD/CAE/PDM) that I've worked with require or
at least recommend this on Digital UNIX. In fact, there are few times that
I've heard justification for the other way around.
:
:
: [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.
Very good point.
:
: [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.
:
To add to the standard rule of thumb argument, within my company's own
installation manuals you'll find the recommendation for swap = 2xRAM on most
32-bit Unices and swap = 4xRAM on 64-bit (Digital UNIX, others now). My
"rule of thumb" is obviously first of all to have enough memory to do the
job, but there can be times that this is a hard target to hit, when you're
dealing with CAD data ranging from 2 MB files up to 100 MB+ Assembly files.
As such, we took to having at least 128MB swap on the OS disk, and a second
disk with swap = 4xRAM - 128 just to be sure. This has never caused me a
problem, and with disk inexpensive as it is, seems like an acceptable
insurance policy to me. I would not recommend more than 4xRAM for swap,
this has caused no end of problems in the past (maybe unrelated, but
definetely bizarre and cleared up when swap was taken down to 4xRAM), and is
really wasteful in the end.
Chris Petersen
Unigraphics Solutions, Inc.
Systems Consultant
next prev parent reply other threads:[~1999-01-27 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
1999-01-27 5:00 ` Chris Petersen [this message]
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