Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Rob Urban <urban@spielwiese.de>
Subject: Re: Swap partition size
Date: 2000/01/30	[thread overview]
Message-ID: <3893AD9E.7C720F79@spielwiese.de> (raw)
In-Reply-To: 3872E748.35ADDE65@fs.uni-lj.si

Zlatko Rek wrote:
> 
> Hi,
> 
> I'll install Tru64 UNIX on AlphaPC 164LX with 1GB of memory
> and 9GB hard disk. What is the recommended size of swap partition
> for this configuration?

it depends on all sorts of things, for example, how much virtual memory
the applications will require and whether you intend to run in 'lazy' or
'eager' swap mode.

eager mode (/sbin/swapdefault exists) means the OS preallocates swap space
for virtual memory.  This is the default mode when a system is installed.

lazy mode (/sbin/swapdefault does not exist) means the OS does not preallocate
swap space, but rather allocates it dynamically as needed. If you run in
lazy mode you run the risk that a process will be terminated because memory
ran low and the OS tried to swap it out, and could not allocate enough swap
space.  Such an occurance is under normal circumstances rare. (of course, it
depends on how much memory your processes need, how much memory you have, and
how much swap space you've configured).

That said, as a [very] general rule, the amount of swap space you need is
roughly equal to the inverse of how much memory you have, thus, if you
have 256MB memory, you might need 512 MB swap, but if you have 1GB memory,
you might still only need 512 MB swap.  As I said, it depends on the
amount of virtual memory required, and when lazy or eager swap mode is in
place.  When in eager swap mode, the total amount of virtual memory available
is equal to the size of swap, whereas in lazy mode, the total virtual memory
is equal to swap + physical-memory.

Rob Urban



      parent reply	other threads:[~2000-01-30  5:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-05  5:00 Swap partition size Zlatko Rek
2000-01-05  5:00 ` Nikola Milutinovic
2000-01-15  5:00   ` Yong S. Yi
2000-01-30  5:00 ` Rob Urban [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