Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D098D47595A for ; Thu, 30 Jan 2003 11:02:24 -0500 (EST) Received: from localhost.localdomain (unknown [65.217.53.66]) by postgresql.org (Postfix) with ESMTP id 7A919474E53 for ; Thu, 30 Jan 2003 11:02:23 -0500 (EST) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id h0UGOd6P018916; Thu, 30 Jan 2003 11:24:39 -0500 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id h0UG2Pj25724; Thu, 30 Jan 2003 11:02:26 -0500 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id CWVLC4SL; Thu, 30 Jan 2003 11:02:25 -0500 Subject: Re: FSM settings -- how to tell if they are working? From: Robert Treat To: Jeff Boes Cc: pgsql-admin@postgresql.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 30 Jan 2003 11:02:25 -0500 Message-Id: <1043942545.2644.43.camel@camel> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/338 X-Sequence-Number: 7180 On Mon, 2003-01-27 at 13:25, Jeff Boes wrote: > We have both test and production databases, about 10 GB total in each. > Recently, I learned about "max_fsm_pages" and "max_fsm_relations". To get > a feel for what changing these settings would do to our production > database, I set the following values in the "test" database: > > max_fsm_relations = 100 > max_fsm_pages = 350000 > > but left the production server alone. How can I tell if these new > settings are having any effect? How can I determine if these numbers are > the best choices? > > We perform full vacuums on each of 103 tables every night (including many > very small tables, which exist only to provide references for foreign > keys -- "code tables"). > I think you would have to parse your vacuum verbose output to determine if disk usage is growing in accordance to how your data is coming in. You might also be able to simply track the file sizes on disk in your data directories to determine if any particular table is growing out of control. I will say this, you max_fsm_relations is set to low. Right now your telling it to only keep track of 100 relations, but your vacuuming 103 tables, not to mention system tables as well. You should probably bump this up to at least 200, for a more specific # search the archives, there is a query that can tell you a good number to put this at. Robert Treat