Re: unexpected shutdown

From: Marco Colombo <pgsql(at)esiway(dot)net>
To: developer(at)wexwarez(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: unexpected shutdown
Date: 2007-06-20 10:33:28
Message-ID: 46790278.7060409@esiway.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

developer(at)wexwarez(dot)com wrote:
>> developer(at)wexwarez(dot)com writes:
>>> My database has shutdown several times in the last couple days. I have
>>> no
>>> idea why. I am running centos and I have not rebooted the server or
>>> made
>>> any configuration changes.

Oh, I forgot. You do have plenty of swap space compared to RAM, yes? If
you're running w/o swap, or little swap, the default settings of
overcommit_memory = 2 will cut your available RAM by a factor of 2.

This thread is interesting reading:
http://www.mail-archive.com/pgsql-general(at)postgresql(dot)org/msg97648.html

Since disk space is usually cheap these days, my rule of thumb is (the
old one):

swap = 2 * ram

read it this way: "it you have 32GB of RAM, you can afford 64GB of disk
storage"

BTW, this is a good idea both with overcommit on and off, IMHO.

.TM.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sean Davis 2007-06-20 10:49:41 Re: [NOVICE] Recursive relationship - preventing cross-index entries.
Previous Message Marco Colombo 2007-06-20 10:21:45 Re: unexpected shutdown