Re: pg/linux How much swap relative to physical memory is needed? - Mailing list pgsql-general

From Vick Khera
Subject Re: pg/linux How much swap relative to physical memory is needed?
Date
Msg-id AANLkTilRfG3nYwH7y9S1J0soZiAPlmIjjSMEHVXgRJ1e@mail.gmail.com
Whole thread Raw
In response to pg/linux How much swap relative to physical memory is needed?  (Kelly Burkhart <kelly.burkhart@gmail.com>)
List pgsql-general
On Thu, Jun 10, 2010 at 1:50 PM, Kelly Burkhart
<kelly.burkhart@gmail.com> wrote:
> Is there some minimum proportion of swap to physical memory that linux
> or postgresql likes to have?  Is it OK for all
>

Dunno about linux, but the BSD types like to have swap = physical mem
+ delta.  If a machine crashes and you want crashdumps, it writes the
content of memory to the swap partition.  The crashdump is recreated
from the data in swap at the next boot.  For this to work you need as
much swap as RAM plus a bit more.

If you don't care for crashdumps, then what you have is plenty.  If
you run out of memory then you're probably overloading that machine
given that much RAM.  Having swap will not save you much.

pgsql-general by date:

Previous
From: Kelly Burkhart
Date:
Subject: pg/linux How much swap relative to physical memory is needed?
Next
From: Alan Hodgson
Date:
Subject: Re: pg/linux How much swap relative to physical memory is needed?