[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Swapfiles



on Tue, Apr 16, 2002, Oki DZ (okidz@pindad.com) wrote:
> Hi,
> 
> On a 128Mbytes machine, how much swap space can it handle? Would it be all 
> right to assign it 384Mbytes?

I tend toward 2-3 times physical RAM for swap, as swap partitions, on
the following basis:

   - Despite arguments that as memory increases, you no longer need as
     much swap, my sense is that this is really a constant.  Swap is
     there for programs that are, er, swapped.  Which isn't of itself a
     bad thing.  Swapping itself is what sucks, and if you're actively
     paging in and out of memory constantly, you've got problems.  So
     the old 2-3x RAM rule of thumb holds, even as memory scales to the
     GiB range.

   - It's a lot easier to add memory than it is to repartition disk.  So
     if you give yourself two or three swap partitions, you can leave
     one (or more) disabled until you max your RAM.

   - Some level of disk optimization may occur by distributing your swap
     across mutliple spindles.  At the very least, put your first swap
     partition on a fast, but underutilized, drive, if you have multiple
     drives installed (I tend to put a swap with my /home partition).

Peace.

-- 
Karsten M. Self <kmself@ix.netcom.com>        http://kmself.home.netcom.com/
 What Part of "Gestalt" don't you understand?
   The Consumer Broadband and Digital Television Promotion Act:
     Because the Republicans had Enron.
       http://www.politechbot.com/docs/cbdtpa/hollings.s2048.032102.html

Attachment: pgpOrbNqgFLti.pgp
Description: PGP signature


Reply to: