Re: Postgres server crash - Mailing list pgsql-performance

From Mattias Kregert
Subject Re: Postgres server crash
Date
Msg-id 004f01c70cf4$4565ee10$6e00a8c0@SLUGGO
Whole thread Raw
In response to Re: Postgres server crash  (Richard Troy <rtroy@ScienceTools.com>)
List pgsql-performance
if [ `cat /proc/sys/vm/overcommit_memory` == 0 ]; then
    echo "WARNING: Watch out for the oom-killer! Consider echo 2 >
/proc/sys/vm/overcommit_memory"
fi

----- Original Message -----
From: "Ron Mayer" <rm_pg@cheapcomplexdevices.com>
To: <pgsql-performance@postgresql.org>
Sent: Sunday, November 19, 2006 6:07 PM
Subject: Re: Postgres server crash


> Tom Lane wrote:
>> "Craig A. James" <cjames@modgraph-usa.com> writes:
>>> Here's something I found googling for "memory overcommitment"+linux
>>>   http://archives.neohapsis.com/archives/postfix/2000-04/0512.html
>>
>> That might have been right when it was written (note the reference to a
>> 2.2 Linux kernel), but it's 100% wrong now.  0 is the default, not-safe
>> setting.
>
> Is this something we could detect and show a warning for at initdb
> time; or perhaps log a warning in the log files at postmaster startup?
> This dangerous choice of settings seems to catch quite a few postgresql
> users.
>


pgsql-performance by date:

Previous
From: "Craig A. James"
Date:
Subject: Re: Postgres server crash
Next
From: Markus Schaber
Date:
Subject: Re: Postgres server crash