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: jamesn@iadfw.net (James Nuckolls) Subject: Re: Swap space for Digital Unix Date: 1999/01/26 Message-ID: <0D8D3C4C5E6458AD.804D50B63FF20284.010108843F4E748B@library-proxy.airnews.net>#1/1 X-Deja-AN: 437250034 References: <%lmr2.495$U75.52321@client.news.psi.net> X-Orig-Message-ID: NNTP-Posting-Time: Tue Jan 26 15:09:04 1999 Organization: Airnews.net! at Internet America NNTP-Proxy-Relay: library.airnews.net User-Agent: slrn/0.9.5.3 (UNIX) Abuse-Reports-To: abuse at airmail.net to report improper postings Newsgroups: comp.unix.osf.osf1 On Tue, 26 Jan 1999 16:48:59 GMT, 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. [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. [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.