X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 050715E46C2 for ; Fri, 6 Aug 2004 13:11:07 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 14467-09 for ; Fri, 6 Aug 2004 16:11:09 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 749CC5E46C7 for ; Fri, 6 Aug 2004 13:11:00 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i76GB65l081375 for ; Fri, 6 Aug 2004 16:11:07 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i76G1BxH080061 for pgsql-performance@postgresql.org; Fri, 6 Aug 2004 16:01:11 GMT From: Gaetano Mendola X-Newsgroups: comp.databases.postgresql.performance Subject: Re: The black art of postgresql.conf tweaking Date: Wed, 04 Aug 2004 17:29:48 +0200 Organization: PYRENET Midi-pyrenees Provider Lines: 41 Message-ID: <411100EC.8010802@bigfoot.com> References: <4110DA83.7020505@clockltd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@pyrenet.fr To: Paul Serby User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en In-Reply-To: <4110DA83.7020505@clockltd.com> X-Enigmail-Version: 0.84.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime To: pgsql-performance@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/78 X-Sequence-Number: 7714 Paul Serby wrote: > Can anyone give a good reference site/book for getting the most out of > your postgres server. > > All I can find is contradicting theories on how to work out your settings. > > This is what I followed to setup our db server that serves our web > applications. > > http://www.phpbuilder.com/columns/smith20010821.php3?page=2 > > We have a Dell Poweredge with the following spec. > > CPU: Intel(R) Xeon(TM) CPU 3.06GHz (512 KB Cache) > CPU: Intel(R) Xeon(TM) CPU 3.06GHz (512 KB Cache) > CPU: Intel(R) Xeon(TM) CPU 3.06GHz (512 KB Cache) > CPU: Intel(R) Xeon(TM) CPU 3.06GHz (512 KB Cache) > Physical Memory: 2077264 kB > Swap Memory: 2048244 kB > > Apache on the Web server can take up to 300 connections and PHP is using > pg_pconnect > > Postgres is set with the following. > > max_connections = 300 > shared_buffers = 38400 > sort_mem = 12000 > > But Apache is still maxing out the non-super user connection limit. Tell us the value MaxClients in your apache configuration Regards Gaetano Mendola