Re: ubuntu swap space

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Kasia Tuszynska <ktuszynska(at)esri(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: ubuntu swap space
Date: 2011-04-12 15:32:56
Message-ID: BANLkTikXNGXGD1CaRnSH2OGxTng7JUQZdw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Tue, Apr 5, 2011 at 5:34 PM, Kasia Tuszynska <ktuszynska(at)esri(dot)com> wrote:
> Hello Admin Group:
>
> We are configuring Postgres on Ubuntu (LLynx) and trying to figure out what
> is the best way of dealing with swap since, Ubuntu does not automatically
> come with swap storage assigned.
>
> Nothing but Postgres will be running on the machine.
>
> I have read that we should assign twice the available RAM to swap, that
> seems like a lot.
>
> Would Postgres ever use so much space? I understand if I were to load
> records that were gigs in size but that is very rare or at least I do not
> expect it in my case.
>
>
>
> Any recommendations or best practices?

We have two machines each with 128G, and we had to turn off swap due
to the kswapd going crazy and constantly trying to use swap it didn't
need. Brought our production dbs to a crawl. My recommendation is to
have enough memory to not ever need swap space if you can afford it.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Grittner 2011-04-12 15:36:50 Re: Missing documentation for error code: 80S01
Previous Message Donald Fraser 2011-04-12 15:30:33 Re: Missing documentation for error code: 80S01