Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 0135E9FA66C for ; Sun, 26 Nov 2006 19:41:16 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 19932-01 for ; Sun, 26 Nov 2006 19:41:08 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id 234299FA48A for ; Sun, 26 Nov 2006 19:41:11 -0400 (AST) Received: by noel.decibel.org (Postfix, from userid 1001) id 80D6A56456; Sun, 26 Nov 2006 17:41:09 -0600 (CST) Received: (hashcash-sendmail, from uid 1001); Sun, 26 Nov 2006 17:41:02 -0600 Date: Sun, 26 Nov 2006 17:41:02 -0600 From: "Jim C. Nasby" To: Richard Troy Cc: Tom Lane , "Craig A. James" , Richard Huxton , Russell Smith , pgsql-performance@postgresql.org Subject: Re: Postgres server crash Message-ID: <20061126234101.GG39519@nasby.net> References: <19583.1163700841@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 6.1-RELEASE-p10 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.13 (2006-08-11) X-Hashcash: 1:20:061126:rtroy@sciencetools.com::y0JE/DWiFz5RZIkj:000000000000000 000000000000000000000000F4iB X-Hashcash: 1:20:061126:tgl@sss.pgh.pa.us::tvjQVs4+PD2Io/ej:00000000000000000000 0000000000000000000000003DOq X-Hashcash: 1:20:061126:cjames@modgraph-usa.com::is8SPLc/hx1o+dQc:00000000000000 0000000000000000000000000+5J X-Hashcash: 1:20:061126:dev@archonet.com::K7hPyv3cfVyNXkEw:03goB X-Hashcash: 1:20:061126:mr-russ@pws.com.au::TAr++0POTlhnKVoZ:0000000000000000000 0000000000000000000000008N20 X-Hashcash: 1:20:061126:pgsql-performance@postgresql.org::vsGgYSZ2MuOpzkqT:00000 00000000000000000000000000Xu X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/229 X-Sequence-Number: 21999 On Sat, Nov 18, 2006 at 05:28:46PM -0800, Richard Troy wrote: > ...I read a large number of articles on this subject and am > absolutely dumbfounded by the -ahem- idiots who think killing a random > process is an appropriate action. I'm just taking their word for it that > there's some kind of impossibility of the existing Linux kernel not > getting itself into a potentially hung situation because it didn't save > itself any memory. Frankly, if it takes a complete kernel rewrite to fix > the problem that the damned operating system can't manage its own needs, > then the kernel needs to be rewritten! > > These kernel hackers could learn something from VAX/VMS. What's interesting is that apparently FreeBSD also has overcommit (and IIRC no way to disable it), yet I never hear people going off on OOM kills in FreeBSD. My theory is that FreeBSD admins are smart enough to dedicate a decent amount of swap space, so that by the time you got to an OOM kill situation you'd be so far into swapping that the box would be nearly unusable. Many linux 'admins' think it's ok to save a few GB of disk space by allocating a small amount of swap (or none at all), and *kaboom*. -- Jim Nasby jim@nasby.net EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)