Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 20E65632A19 for ; Sat, 31 Jul 2010 04:01:01 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 15835-01 for ; Sat, 31 Jul 2010 07:00:53 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from rs73.luxsci.com (rs73.luxsci.com [64.49.254.135]) by mail.postgresql.org (Postfix) with ESMTP id D419A6329A9 for ; Sat, 31 Jul 2010 04:00:53 -0300 (ADT) Received: from GNANAM (ABTS-TN-Static-186.58.165.122.airtelbroadband.in [122.165.58.186] (may be forged)) (authenticated bits=0) by rs73.luxsci.com (8.13.8/8.13.8) with ESMTP id o6V70lAL013788; Sat, 31 Jul 2010 02:00:49 -0500 Reply-To: From: "Gnanakumar" To: "'Scott Marlowe'" Cc: References: <002301cb306f$c8967dc0$59c37940$@com> In-Reply-To: Subject: Re: Unexpected disk space growth controlling measures Date: Sat, 31 Jul 2010 12:30:44 +0530 Organization: Zoniac Software Private Limited Message-ID: <005101cb307e$1b12f1b0$5138d510$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acswem1qGT+FN8yCQeeW0RcbnlJ0gwAAYONg Content-Language: en-us X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.5 tagged_above=-10 required=5 tests=BAYES_05=-0.5 X-Spam-Level: X-Archive-Number: 201007/228 X-Sequence-Number: 35247 Hi Scott, Thanks for your valuable suggestion. Our production server is running PostgreSQL 8.2.3 on Red Hat 4.1.1-52. > Esp in 8.3 and before where blowing out the free space map is quite easy to do and it can go unnoticed for some time. As you pointed out rightly, recently in our Production server there is a warning showing up in VACUUM ANALYZE VERBOSE. WARNING: relation "public.oneofmytable" contains more than "max_fsm_pages" pages with useful free space HINT: Consider compacting this relation or increasing the configuration parameter "max_fsm_pages". Currently, there are 439 tables and 743 indexes, adding up 1182 relations. What would you recommend me to set the value for "max_fsm_pages" and "max_fsm_relations" parameters? > Where I work we use about 2.5M entries but have our fsm set to 10M so we don't have to worry about blowing it out overnight or anything. If you don't mind, can you make me clear here. Is 2.5M entries in a single table or is it something else? > Lastly, make sure your IO subsystem can keep up. If you're on the hairy edge, then vacuum may never be able to keep up. How do I confirm/make sure that IO subsystem can keep up?