Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 1DB542E00B1 for ; Mon, 10 Dec 2007 12:53:44 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 51634-03 for ; Mon, 10 Dec 2007 12:53:38 -0400 (AST) Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id DF90A2E003C for ; Mon, 10 Dec 2007 12:53:38 -0400 (AST) Received: from [192.168.1.226] (or-69-34-217-90.sta.embarqhsd.net [69.34.217.90]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id lBAGrOt4014985 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 10 Dec 2007 08:53:25 -0800 Message-ID: <475D6F09.9000007@commandprompt.com> Date: Mon, 10 Dec 2007 08:53:29 -0800 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Thunderbird 1.5.0.13 (Windows/20070809) MIME-Version: 1.0 To: Listaccount CC: pgsql-docs@postgresql.org Subject: Re: [ADMIN] Dangerous hint in the PostgreSQL manual References: <20071210162612.a9y113hzjkookooc@webmail.kwsoft.de> In-Reply-To: <20071210162612.a9y113hzjkookooc@webmail.kwsoft.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Mon, 10 Dec 2007 08:53:25 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/43 X-Sequence-Number: 4711 Listaccount wrote: > 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. This discussion belongs on -docs... moving. Joshua D. Drake > > Regards > > Andreas > > > > ---------------------------(end of broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match >