X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8F46CDA282 for ; Wed, 9 Nov 2005 19:08:08 -0400 (AST) 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 25750-04 for ; Wed, 9 Nov 2005 23:08:02 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mx1.surnet.cl (mx1.surnet.cl [216.155.73.180]) by svr1.postgresql.org (Postfix) with ESMTP id DA6B3DA20D for ; Wed, 9 Nov 2005 19:08:01 -0400 (AST) Received: from unknown (HELO cluster.surnet.cl) ([216.155.73.165]) by mx1.surnet.cl with ESMTP; 09 Nov 2005 20:10:03 -0300 X-IronPort-AV: i="3.97,310,1125892800"; d="scan'208"; a="24327048:sNHT10221403366" Received: from alvh.no-ip.org (216.155.78.23) by cluster.surnet.cl (7.0.043) (authenticated as alvherre@surnet.cl) id 4350159700348836; Wed, 9 Nov 2005 20:07:40 -0300 Received: by alvh.no-ip.org (Postfix, from userid 1000) id 84F4AC2D450; Wed, 9 Nov 2005 20:07:52 -0300 (CLST) Date: Wed, 9 Nov 2005 20:07:52 -0300 From: Alvaro Herrera To: Ron Peacetree Cc: Yves Vindevogel , pgsql-performance@postgresql.org Subject: Re: Some help on buffers and other performance tricks Message-ID: <20051109230752.GC8230@surnet.cl> Mail-Followup-To: Ron Peacetree , Yves Vindevogel , pgsql-performance@postgresql.org References: <17035565.1131571489652.JavaMail.root@elwamui-hound.atl.sa.earthlink.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17035565.1131571489652.JavaMail.root@elwamui-hound.atl.sa.earthlink.net> User-Agent: Mutt/1.5.10i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.881 required=5 tests=[AWL=-0.364, DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_POST=1.44, RCVD_IN_NJABL_PROXY=0.327] X-Spam-Score: 1.881 X-Spam-Level: * X-Archive-Number: 200511/167 X-Sequence-Number: 15424 Ron Peacetree wrote: > 0= Optimize your schema to be a tight as possible. Your goal is to give yourself the maximum chance that everything you want to work on is in RAM when you need it. > 1= Upgrade your RAM to as much as you can possibly strain to afford. 4GB at least. It's that important. > 2= If the _entire_ DB does not fit in RAM after upgrading your RAM, the next step is making sure your HD IO subsystem is adequate to your needs. > 3= Read the various pg tuning docs that are available and Do The Right Thing. > 4= If performance is still not acceptable, then it's time to drill down into what specific actions/queries are problems. > If you get to here and the entire DBMS is still not close to acceptable, your fundamental assumptions have to be re-examined. IMHO you should really be examining your queries _before_ you do any investment in hardware, because later those may prove unnecessary. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.