Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Nikola Milutinovic <Nikola.Milutinovic@ev.co.yu>
Subject: Re: Swap space for Digital Unix
Date: 1999/01/27	[thread overview]
Message-ID: <36AEE35A.D7FD366B@ev.co.yu> (raw)
In-Reply-To: %lmr2.495$U75.52321@client.news.psi.net

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.
>         To me, making such a statement without equivocation is ridiculous.

Well, this has caused a lot of debate in the past, so lets set it straight.

1. If all of your programs fit into the RAM, you don't need swap at all. DU has
the swap built into it, so it requires the presence of swap, but I'm almost sure
it can be left out. The system will work. Take a look at DU 4.0 installation; no
swap and X Windows is running. :-)

2. If your programs cannot fit into the RAM, then you need swap. If you exceed
RAM + SWAP, you get "out of memeory" error. Actually it starts happening at 10%
SWAP FREE.

3. You can have any amount of RAM and any amount of SWAP on the system. It will
service tasks, as long as the condition (2) is met.

So, what is this story on "SWAP = 2-3 times RAM"? I mean, if you run out of
memory, give it secondary swap of 10 times RAM, it's OK, right?

Well, not exactly. If you have 512 MB RAM and 1 GB SWAP and you need 5 GB
virtual memory, you could give it 5 GB SWAP, but things will run at "snail
speed". It is much better to add apropriate amount of both RAM and SWAP, so that
RAM + SWAP (3xRAM) = 4xRAM = 5 GB.

And that is "the rule of the thumb". For a particular amount of RAM configure
SWAP to be no more than 3xRAM and you'll run optimally. If you run out of
memory, you can patch things with more swap, but at the cost of speed. The
proper solution is more RAM and SWAP.

Nix.

-- 
Ruka ruku mije, a pesnica bije.



  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
1999-01-27  5:00 ` Nikola Milutinovic [this message]
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