Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 9A7EDB5DC11 for ; Thu, 21 Jul 2011 12:07:01 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 91516-04 for ; Thu, 21 Jul 2011 15:06:54 +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 84293B5DC14 for ; Thu, 21 Jul 2011 12:06:54 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Thu, 21 Jul 2011 10:06:52 -0500 Message-Id: <4E27FA35020000250003F64F@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Thu, 21 Jul 2011 10:06:45 -0500 From: "Kevin Grittner" To: "Christoph Anton Mitterer" , Cc: "Scott Marlowe" Subject: Re: how to make PostgreSQL using "all" memory and chaching the DB completely there References: <1310642850.28621.37.camel@gar-ws-etp71.garching.physik.uni-muenchen.de> <1311259235.3422.116.camel@fermat.scientia.net> In-Reply-To: <1311259235.3422.116.camel@fermat.scientia.net> 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=-3.093 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-1.193 X-Spam-Level: X-Archive-Number: 201107/154 X-Sequence-Number: 37933 Christoph Anton Mitterer wrote: > Well I'm still very unsure on how to configure many values... > We've increased e.g. shared_buffers, temp_buffers, work_mem, > maintenance_work_mem, max_stack_depth... and this greatly improved > performance. But I can hardly judge to which values I should > increase all these (and a few more). Maybe the ellipses cover these, but wal_buffers and checkpoint_segments should generally be adjusted, too. I almost always need to tweak some of the costing factors, too; but appropriate settings there depend not only on your hardware, but also your schema, data, and application mix. The best source of information on this that I know is Greg Smith's "PostgreSQL 9.0 High Performance" book. (It also discusses older versions, so don't let the "9.0" in the title put you off.) Some of these settings are best tuned through an iterative process of monitoring while making small adjustments. http://www.postgresql.org/docs/books/ -Kevin