Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 2F5F66325DA for ; Mon, 21 Jun 2010 13:37:08 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 87764-08 for ; Mon, 21 Jun 2010 16:37:00 +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 0085E632340 for ; Mon, 21 Jun 2010 13:37:00 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 9FC45348035; Mon, 21 Jun 2010 09:36:59 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com 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 BlQc9j4Iu39F; Mon, 21 Jun 2010 09:36:57 -0700 (PDT) Received: from perhan.alvh.no-ip.org (190-95-17-80.bk17-dsl.surnet.cl [190.95.17.80]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 3A715348002; Mon, 21 Jun 2010 09:36:57 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id D4A6F6E83A; Mon, 21 Jun 2010 12:36:54 -0400 (CLT) Content-Type: text/plain; charset=UTF-8 Cc: Jesper Krogh , pgsql-performance Subject: Re: Aggressive autovacuuming ? From: Alvaro Herrera To: Scott Marlowe In-reply-to: References: <4C1E537D.5030904@krogh.cc> Date: Mon, 21 Jun 2010 12:36:54 -0400 Message-Id: <1277137973-sup-953@alvh.no-ip.org> User-Agent: Sup/0.11 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.8 tagged_above=-10 required=5 tests=BAYES_50=0.8 X-Spam-Level: X-Archive-Number: 201006/366 X-Sequence-Number: 39222 Excerpts from Scott Marlowe's message of dom jun 20 16:13:15 -0400 2010: > On Sun, Jun 20, 2010 at 11:44 AM, Jesper Krogh wrote: > > Hi. > > > > I have been wondering if anyone has been experimenting with "really > > agressive" > > autovacuuming. > > I have been using moderately aggressive autovac, with 6 or more > threads running with 1ms sleep, then keeping track of them to see if > they're being too aggresive. Basically as long as io utilization > doesn't hit 100% it doesn't seem to have any negative or even > noticeable effect. Keep in mind that autovacuum scales down the cost limit the more workers there are. So if you have 10ms sleeps and 1 worker, it should roughly use a similar amount of I/O than if you have 10ms sleeps and 10 workers (each worker would sleep 10 times more frequently). -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support