X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id D51659DC9EE for ; Fri, 17 Mar 2006 20:08:54 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 28412-05 for ; Fri, 17 Mar 2006 20:08:57 -0400 (AST) X-Greylist: delayed 01:57:38.576021 by SQLgrey- Received: from colo-dns-ext2.juniper.net (colo-dns-ext2.juniper.net [207.17.137.64]) by postgresql.org (Postfix) with ESMTP id EA6E19DC8A0 for ; Fri, 17 Mar 2006 20:08:52 -0400 (AST) Received: from merlot.juniper.net (merlot.juniper.net [172.17.27.10]) by colo-dns-ext2.juniper.net (8.12.3/8.12.3) with ESMTP id k2I08t1Z095814; Fri, 17 Mar 2006 16:08:55 -0800 (PST) (envelope-from kenjim@juniper.net) Received: from kenjim-lnx.juniper.net (kenjim-lnx.juniper.net [172.17.58.60]) by merlot.juniper.net (8.11.3/8.11.3) with ESMTP id k2I08t513174; Fri, 17 Mar 2006 16:08:55 -0800 (PST) (envelope-from kenjim@juniper.net) Received: from kenjim-lnx.juniper.net (kenjim-lnx.juniper.net [127.0.0.1]) by kenjim-lnx.juniper.net (8.13.4/8.13.4) with ESMTP id k2I08tQM020532; Fri, 17 Mar 2006 16:08:55 -0800 Received: (from kenjim@localhost) by kenjim-lnx.juniper.net (8.13.4/8.13.4/Submit) id k2I08t1c020531; Fri, 17 Mar 2006 16:08:55 -0800 Date: Fri, 17 Mar 2006 16:08:55 -0800 From: Kenji Morishige To: Claus Guttesen Cc: pgsql-performance@postgresql.org, kenjim@juniper.net Subject: Re: Best OS & Configuration for Dual Xeon w/4GB & Adaptec RAID 2200S Message-ID: <20060318000855.GB14661@juniper.net> References: <20060317221116.GA14661@juniper.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200603/299 X-Sequence-Number: 17736 Thanks guys, I'm studying each of your responses and am going to start to experiement. Unfortunately, I don't have another box with similar specs to do a perfect experiment with, but I think I'm going to go ahead and open a service window to ungrade the box to FBSD6.0 and apply some other changes. It also gives me the chance to go from 8.0.1 to 8.1 series which I been wanting to do as well. Thanks guys and I will see if any of your suggestions make a noticable difference. I also have been looking at log result of slow queries and making necessary indexes to make those go faster. -Kenji On Sat, Mar 18, 2006 at 12:29:17AM +0100, Claus Guttesen wrote: > > 4. Are there any other settings in the conf file I could try to tweak? > > One more thing :-) > > I stumbled over this setting, this made the db (PG 7.4.9) make use of > the index rather than doing a sequential scan and it reduced a query > from several minutes to some 20 seconds. > > random_page_cost = 2 (original value was 4). > > Another thing you ought to do is to to get the four-five most used > queries and do an explain analyze in these. Since our website wasn't > prepared for this type of statistics I simply did a tcpdump, grep'ed > all select's, sorted them and sorted them unique so I could see which > queries were used most. > > regards > Claus