Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 862CF9F9AD7 for ; Sun, 19 Nov 2006 02:45:02 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 29309-07 for ; Sun, 19 Nov 2006 02:44:57 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from 66-226-76-106.dedicated.abac.net (66-226-76-106.dedicated.abac.net [66.226.76.106]) by postgresql.org (Postfix) with ESMTP id F2E679F94EA for ; Sun, 19 Nov 2006 02:44:55 -0400 (AST) Received: (qmail 7264 invoked by uid 2020); 18 Nov 2006 23:46:06 -0800 Received: from wsip-70-167-125-69.sd.sd.cox.net (HELO ?192.168.0.3?) (70.167.125.69) by 66-226-76-106.dedicated.abac.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 18 Nov 2006 23:46:06 -0800 Message-ID: <455FFD02.1060503@modgraph-usa.com> Date: Sat, 18 Nov 2006 22:43:14 -0800 From: "Craig A. James" User-Agent: Thunderbird 1.5.0.8 (X11/20061025) MIME-Version: 1.0 To: Richard Troy CC: Tom Lane , Richard Huxton , Russell Smith , pgsql-performance@postgresql.org Subject: Re: Postgres server crash References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.833 tagged_above=0 required=5 tests=AWL, BAYES_50, HELO_DYNAMIC_IPADDR2 X-Spam-Level: ** X-Archive-Number: 200611/155 X-Sequence-Number: 21925 Richard Troy wrote: > I did that - spent about two f-ing hours looking for what I wanted. (Guess > I entered poor choices for my searches. -frown- ) There are a LOT of > articles that TALK ABOUT OOM, but prescious few actually tell you what you > can do about it. > > Trying to save you some time: > > On linux you can use the sysctl utility to muck with vm.overcommit_memory; > You can disable the "feature." > > Google _that_ for more info! Here's something I found googling for "memory overcommitment"+linux http://archives.neohapsis.com/archives/postfix/2000-04/0512.html From /usr/src/linux/Documentation/sysctl/vm.txt "overcommit_memory: This value contains a flag that enables memory overcommitment. When this flag is 0, the kernel checks before each malloc() to see if there's enough memory left. If the flag is nonzero, the system pretends there's always enough memory." This flag is settable in /proc/sys/vm Lo and behold, here it is on my system: $ cat /proc/sys/vm/overcommit_memory 0 $ cat /proc/sys/vm/overcommit_ratio 50 Craig