X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 7E1779FA435 for ; Wed, 30 Aug 2006 13:45:03 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 50279-08 for ; Wed, 30 Aug 2006 13:44:59 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id D2D519FB26E for ; Wed, 30 Aug 2006 13:24:31 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from skynet.simkin.ca (skynet.simkin.ca [199.175.137.210]) by svr4.postgresql.org (Postfix) with ESMTP id 27FEC5AF89D for ; Wed, 30 Aug 2006 16:24:31 +0000 (GMT) Received: from hal.simkin.ca (S0106000c6eb33e73.vc.shawcable.net [24.80.120.141]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by skynet.simkin.ca (Postfix) with ESMTP id C9B21FA82 for ; Wed, 30 Aug 2006 09:24:28 -0700 (PDT) From: Alan Hodgson Organization: Simkin Network Consulting To: pgsql-performance@postgresql.org Subject: Re: PostgreSQL performance issues Date: Wed, 30 Aug 2006 09:24:26 -0700 User-Agent: KMail/1.9.1 References: <44F446B2.2090900@studentvillage.co.za> <9A079B52-0D1D-4682-A841-AA856439698E@infogears.com> <44F56CE9.6060602@studentvillage.co.za> In-Reply-To: <44F56CE9.6060602@studentvillage.co.za> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608300924.26151@hal.medialogik.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.277 tagged_above=0 required=5 tests=FORGED_RCVD_HELO, SPF_FAIL X-Spam-Level: * X-Archive-Number: 200608/481 X-Sequence-Number: 20666 On Wednesday 30 August 2006 03:48, Willo van der Merwe wrote: > Hi Rusty, > > Good ideas and I've implemented some of them, and gained about 10%. I'm > still sitting on a load avg of about 60. > > Any ideas on optimizations on my postgresql.conf, that might have an > effect? If all of those sessions are truly doing a select count(*) from a .75 million row table (plus half a million dead rows), then I'm not suprised it's bogged down. Every query has to loop through the cache of the full table in memory every time it's run. Your CPU is doing something. I doubt that postgresql.conf settings are going to help. What exactly are all those high CPU usage sessions doing? -- "Government big enough to supply everything you need is big enough to take everything you have ... the course of history shows that as a government grows, liberty decreases." -- Thomas Jefferson