Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 8A2201337B69 for ; Sun, 1 May 2011 14:19:03 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 10204-08 for ; Sun, 1 May 2011 17:18:55 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 506BB1337990 for ; Sun, 1 May 2011 14:18:54 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Sun, 01 May 2011 12:18:53 -0500 Message-Id: <4DBD4FAA020000250003D0C9@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Sun, 01 May 2011 12:18:50 -0500 From: "Kevin Grittner" To: "Phoenix Kiula" , Subject: Re: The right SHMMAX and FILE_MAX References: In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201105/3 X-Sequence-Number: 43512 Phoenix Kiula wrote: > Now, according to my reading in the PG manual and this list, a > good recommended value for SHMMAX is > > (shared_buffers * 8192) Where did you see that? The amount of data buffered is the number of shared buffers * 8KB. Taking shared_buffers as a number of bytes and multiplying by 8K makes no sense at all. Any documentation which can be read to indicate that should be fixed. Besides that, there is shared memory space needed besides the actual buffered disk pages, so you're not looking at the whole picture once you stop dealing with "bytes squared". -Kevin