Re: pg/linux How much swap relative to physical memory is needed?

From: Vick Khera <vivek(at)khera(dot)org>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg/linux How much swap relative to physical memory is needed?
Date: 2010-06-10 18:33:16
Message-ID: AANLkTilRfG3nYwH7y9S1J0soZiAPlmIjjSMEHVXgRJ1e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Jun 10, 2010 at 1:50 PM, Kelly Burkhart
<kelly(dot)burkhart(at)gmail(dot)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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alan Hodgson 2010-06-10 18:35:31 Re: pg/linux How much swap relative to physical memory is needed?
Previous Message Kelly Burkhart 2010-06-10 17:50:55 pg/linux How much swap relative to physical memory is needed?