Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id B6F34B5DBBF for ; Tue, 9 Aug 2011 00:59:29 -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 22210-02 for ; Tue, 9 Aug 2011 03:59:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mail.postgresql.org (Postfix) with ESMTP id 8EB60B5D8C5 for ; Tue, 9 Aug 2011 00:59:23 -0300 (ADT) Received: from [192.168.1.3] (mail.highperformancepostgresql.com [71.179.240.8]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0MRyOs-1QkdDI0vdK-00TAQ5; Tue, 09 Aug 2011 05:59:10 +0200 Message-ID: <4E40B08C.6010309@2ndquadrant.com> Date: Mon, 08 Aug 2011 23:59:08 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Kevin Grittner CC: pgsql-performance@postgresql.org, Claire Chang Subject: Re: Postgres 8.4 memory related parameters References: <1312489633.71838.YahooMailClassic@web31912.mail.mud.yahoo.com> <4E3ABCFB020000250003FAF4@gw.wicourts.gov> In-Reply-To: <4E3ABCFB020000250003FAF4@gw.wicourts.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:iRuuUbQAY9sFGGwusq86O46x0bqAszHfKehwPGYaUOy A8PIJ/pcE2MFCt/dQR4LAlSkApfFrUooTyshnpTqgSjLUn9pFG nUUlAlaYRdeOhKf35G0YB4Xu8+95JXfzkMlmrDOH8FEaqARWWb uaCoqBieGFpmyNFPH+L9InCE3EprmuTr6PtrkbEV6kvYVowWPF EQ+zK6UJ8CGhOscQgJZP9nala0Xrq1zDx2KtrJXuwI= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201108/109 X-Sequence-Number: 44556 Kevin Grittner wrote: > Claire Chang wrote: > >> shared_buffers = 32GB >> > > I seem to remember seeing some benchmarks showing that performance > falls off after 10GB or 20GB on that setting. > Not even quite that high. I've never heard of a setting over 10GB being anything other than worse than a smaller setting, and that was on Solaris. At this point I never consider a value over 8GB, and even that needs to be carefully matched against how heavy the writes on the server are. You just can't set shared_buffers to a huge value in PostgreSQL yet, and "huge" means ">8GB" right now. Note that the problems you can run into with too much buffer cache are much worse with a low setting for checkpoint_segments...and this configuration doesn't change it at all from the tiny default. That should go to at least 64 on a server this size. -- Greg Smith 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.us