From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,908c04ffbba0d93a X-Google-Attributes: gidfee84,public From: Nikola Milutinovic Subject: Re: Swap space for Digital Unix Date: 1999/01/27 Message-ID: <36AEE35A.D7FD366B@ev.co.yu>#1/1 X-Deja-AN: 437449137 Content-Transfer-Encoding: 7bit References: <%lmr2.495$U75.52321@client.news.psi.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: EPS JP Elektrovojvodina Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 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.