From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,dc24453d40dd3842 X-Google-Attributes: gidfee84,public From: Rob Urban Subject: Re: Swap partition size Date: 2000/01/30 Message-ID: <3893AD9E.7C720F79@spielwiese.de>#1/1 X-Deja-AN: 579376951 Content-Transfer-Encoding: 7bit References: <3872E748.35ADDE65@fs.uni-lj.si> X-Accept-Language: en, German, de Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@ecrc.de X-Trace: news.ecrc.de 949202076 194.112.100.97 (Sun, 30 Jan 2000 04:14:36 MET) MIME-Version: 1.0 NNTP-Posting-Date: Sun, 30 Jan 2000 04:14:36 MET Newsgroups: comp.unix.osf.osf1 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