*BSD News Article 3768


Return to BSD News archive

Xref: sserve comp.unix.sysv386:22648 comp.unix.bsd:3815
Path: sserve!manuel!munnari.oz.au!network.ucsd.edu!sdd.hp.com!wupost!zaphod.mps.ohio-state.edu!sample.eng.ohio-state.edu!purdue!yeh
From: yeh@cs.purdue.EDU (Wei Jen Yeh)
Newsgroups: comp.unix.sysv386,comp.unix.bsd
Subject: swap allocation strategies
Keywords: swap
Message-ID: <19274@ector.cs.purdue.edu>
Date: 17 Aug 92 18:59:37 GMT
Sender: news@cs.purdue.EDU
Followup-To: comp.unix.sysv386
Organization: Department of Computer Science, Purdue University
Lines: 23

Hello,
  I've read discussions on the net about deciding appropriate swap size
for normal systems.  However, I've not seen discussions concerning other
issues like where the main swap region should reside, or a large swap vs.
several medium ones.  The system I'm running is often under heavy load.
It currently has 32mb main mem and a main swap (/dev/swap) of size 64mb.
There are times that I need to add an extra swap (file) to the system.
The questions below thus come up:
  1.  Should I allocate another 64mb of swap region or two 32mb ones?
  2.  Where should they go? to the boot drive or the secondary drive?
  3.  Should I allocate a slice for the swap or use a swap file instead?
  4.  Should I reinstall the system and start w/ a single 128 mb of main swap?
      (if it's better to have a single swap region.), or four slices of
      size 32mb?

Any suggestions?

If it matters, I'm running Dell's sVr4 Issue 2.1.  Thanks.

Wei Jen Yeh                      yeh@cs.purdue.edu
                                 Department of Computer Science
                                 Purdue University
                                 West Lafayette, Indiana