Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 47BF82E2E65 for ; Mon, 10 Dec 2007 11:26:20 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 58760-01-8 for ; Mon, 10 Dec 2007 11:26:03 -0400 (AST) Received: from mailin.kwsoft.de (mailin.kwsoft.de [213.164.67.82]) by postgresql.org (Postfix) with ESMTP id 3BDA92E2E56 for ; Mon, 10 Dec 2007 11:26:15 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by mailin.kwsoft.de (Postfix) with ESMTP id 43D2E7D207 for ; Mon, 10 Dec 2007 16:26:12 +0100 (CET) Received: from mailer.kwsoft.de (mailer.kwsoft.de [10.5.0.1]) by webmail.kwsoft.de (Horde MIME library) with HTTP; Mon, 10 Dec 2007 16:26:12 +0100 Message-ID: <20071210162612.a9y113hzjkookooc@webmail.kwsoft.de> Date: Mon, 10 Dec 2007 16:26:12 +0100 From: Listaccount To: pgsql-admin@postgresql.org Subject: Dangerous hint in the PostgreSQL manual MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.5) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/35 X-Sequence-Number: 27552 Hello I have been trapped by the advice from the manual to use "sysctl -w vm.overcommit_memory=2" when using Linux (see 16.4.3. Linux Memory Overcommit). This value should only be used when PostgreSQL is the only Application running on the machine in question. It should be checked against the values "CommitLimit" and "Committed_AS" in /proc/meminfo on a longer running system. If "Committed_AS" reaches or come close to "CommitLimit" one should not set overcommit_memory=2 (see http://www.redhat.com/archives/rhl-devel-list/2005-February/msg00738.html). I think it should be included in the manual as a warning because with this setting the machine in question may get trouble with "fork failed" even if the standard system tools report a lot of free memory causing confusion to the admins. Regards Andreas