Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: peter@baileynm.com (Peter da Silva)
Subject: Re: Q: Running out of swap
Date: 1999/04/29	[thread overview]
Message-ID: <7g9pup$481@web.nmti.com> (raw)
In-Reply-To: Pine.GSO.3.96.990428231519.27106A-100000@odin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1096 bytes --]

>swap space below 10 percent free

>	This is strange to me since I have about 128 MB of swap and 128 MB
>of RAM.  Even the biggest compiles or apps I run shouldn't be coming close
>to this limit!

If you're using "greedy swap", then it preallocates swap space for everything
in physical memory. To switch to "lazy swap" delete /sbin/swapdefault, which
is a symlink to the partition that you want to back memory with.

By the way, don't listen to anyone who tells you to allocate X times real
memory to swap partitions. Figure out how much VM you will need, allocate
that much space, and add 1x real memory if you're using greedy swap. RAM
is basically a cache for swap space, and having more RAM than one of these
algorithms says you "should" have just means you'll get a better hit ratio,
so long as you have enough swap in the first place.

-- 
In hoc signo hack, Peter da Silva <peter@baileynm.com>
 `-_-'   Ar rug t� barr�g ar do mhact�re inniu? 
  'U`   "Twenty-two points, plus triple-word-score, plus fifty points for
         using all my letters.  Game's over.  I'm outta here."



  parent reply	other threads:[~1999-04-29  4:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-28  4:00 Q: Running out of swap Karl N. Matthias
1999-04-29  4:00 ` Rostislav Kouznetsov
1999-04-29  4:00 ` Peter da Silva [this message]
1999-04-29  4:00 ` Q: " Alan Rollow - Dr. File System's Home for Wayward Inodes.
1999-05-07  4:00 ` SHass88010
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox