pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: Kasia Tuszynska <ktuszynska@esri.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: ubuntu swap space
Date: Tue, 12 Apr 2011 09:32:56 -0600
Message-ID: <BANLkTikXNGXGD1CaRnSH2OGxTng7JUQZdw@mail.gmail.com> (raw)
In-Reply-To: <232B5217AD58584C87019E8933556D110227AF1D70@redmx2.esri.com>
References: <Acvz6feeVpQeSWSyRYi/LySka8QSHg==>
	<232B5217AD58584C87019E8933556D110227AF1D70@redmx2.esri.com>

On Tue, Apr 5, 2011 at 5:34 PM, Kasia Tuszynska <ktuszynska@esri.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.



view thread (3+ messages)

Message-ID: <BANLkTikXNGXGD1CaRnSH2OGxTng7JUQZdw@mail.gmail.com>
Permalink:  ../BANLkTikXNGXGD1CaRnSH2OGxTng7JUQZdw@mail.gmail.com/
Also on:    postgresql.org/message-id/BANLkTikXNGXGD1CaRnSH2OGxTng7JUQZdw@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: scott.marlowe@gmail.com, ktuszynska@esri.com
  Subject: Re: ubuntu swap space
  In-Reply-To: <BANLkTikXNGXGD1CaRnSH2OGxTng7JUQZdw@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox