Received: from maia.hub.org (maia-4.hub.org [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id BF3D9632845 for ; Sat, 1 May 2010 00:08:38 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 79953-06 for ; Sat, 1 May 2010 03:08:25 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 0A4856324BE for ; Sat, 1 May 2010 00:08:24 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 46CEB348038; Fri, 30 Apr 2010 20:08:24 -0700 (PDT) Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uC+xRyaMGjPl; Fri, 30 Apr 2010 20:08:24 -0700 (PDT) Received: from perhan.alvh.no-ip.org (190-95-19-190.bk17-dsl.surnet.cl [190.95.19.190]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id D904B348034; Fri, 30 Apr 2010 20:08:23 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 9DB6F6E9CB; Fri, 30 Apr 2010 23:08:20 -0400 (CLT) Date: Fri, 30 Apr 2010 23:08:20 -0400 From: Alvaro Herrera To: Josh Berkus Cc: Robert Haas , Rick , pgsql-performance@postgresql.org Subject: Re: autovacuum strategy / parameters Message-ID: <20100501030820.GI3151@alvh.no-ip.org> References: <65d9d15d-41d2-4bfa-8cc3-6148b4fb9022@z3g2000yqz.googlegroups.com> <4BDB5ECE.4010607@agliodbs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4BDB5ECE.4010607@agliodbs.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.13 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_SORBS_WEB=0.77 X-Spam-Level: X-Archive-Number: 201005/1 X-Sequence-Number: 38585 Josh Berkus escribió: > #autovacuum_vacuum_scale_factor = 0.2 > > This is set because in my experience, 20% bloat is about the level at > which bloat starts affecting performance; thus, we want to vacuum at > that level but not sooner. This does mean that very large tables which > never have more than 10% updates/deletes don't get vacuumed at all until > freeze_age; this is a *good thing*. VACUUM on large tables is expensive; > you don't *want* to vacuum a billion-row table which has only 100,000 > updates. Hmm, now that we have partial vacuum, perhaps we should revisit this. > It would be worth doing a DBT2/DBT5 test run with different autovac > settings post-8.4 so see if we should specifically change the vacuum > threshold. Right. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.