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 8FD8D3A5848 for ; Thu, 2 Dec 2004 19:37:38 +0000 (GMT) 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 73932-05 for ; Thu, 2 Dec 2004 19:37:33 +0000 (GMT) Received: from frank.wiles.org (frank.wiles.org [24.124.39.75]) by svr1.postgresql.org (Postfix) with ESMTP id AA9333A584F for ; Thu, 2 Dec 2004 19:37:34 +0000 (GMT) Received: from kungfu (frank.wiles.org [24.124.39.75]) by frank.wiles.org (8.12.11/8.12.11) with SMTP id iB2Kg0pH004760; Thu, 2 Dec 2004 14:42:00 -0600 Date: Thu, 2 Dec 2004 13:38:09 -0600 From: Frank Wiles To: Pallav Kalva Cc: pgsql-performance@postgresql.org Subject: Re: Poor Performance on a table Message-Id: <20041202133809.20af3079.frank@wiles.org> In-Reply-To: <41AF6DE5.8020301@deg.cc> References: <41AF68F2.1050206@deg.cc> <20041202132014.27456058.frank@wiles.org> <41AF6DE5.8020301@deg.cc> X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200412/70 X-Sequence-Number: 9445 On Thu, 02 Dec 2004 14:32:53 -0500 Pallav Kalva wrote: > Hi Frank, > > Thanks! for the quick reply, here are my current default fsm > setting . > max_fsm_pages = 20000 and max_fsm_relations = 1000 > What are the appropriates settings for these parameters ? are there > > any guidlines ? postgres docs doesnt give much information on setting > these values. There really aren't any guidelines on these because it really depends on your data and how you use the database. If you insert/update 99% of the time and only delete 1% of the time, the defaults are probably perfect for you. Probably up to a 80% insert/update, 20% delete ratio. If however you're constantly deleting entries from your database, I would suggest slowly raising those values in step with each other over the course a few weeks and see where you're at. It is really a matter of trial an error. With my databases, I can afford to do VACUUM FULLs fairly often so I typically don't need to increase my fsm values. --------------------------------- Frank Wiles http://www.wiles.org ---------------------------------