Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!comp.vuw.ac.nz!windy!sramtrc From: sramtrc@windy.dsir.govt.nz Newsgroups: comp.unix.aux Subject: Re: How big should the swap partition be? Keywords: swap Message-ID: <18745.2737f2bc@windy.dsir.govt.nz> Date: 7 Nov 90 11:40:44 GMT References: <4058@wrgate.WR.TEK.COM> Reply-To: sramtrc@albert.dsir.govt.nz Organization: DSIR, Wellington, New Zealand Lines: 18 > > The question is, how do I calculate the required size for the swap > partition? Do /etc/swap -l. This will tell you how much swap space you are using. Do it often and you will get an idea of your usage. The formula goes something like (for a paging system) total memory available = RAM + SWAP where total memory available is the amount of memory you have to run processes in. You want to have total memory available >= total memory needed where total memory needed is the amount of memory you need to do whatever you want to do. This is just about impossible to calculate since memory requirements of any program vary all the time. As a general rule programs need more memory to start up than to run. So usually they require less then the sum of their text+data requirements. Really, the best way is to run a lot of stuff and play with /etc/swap.