Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 13A459FBB84 for ; Tue, 29 May 2007 14:14:23 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 38331-08 for ; Tue, 29 May 2007 14:14:16 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from h07.llord.com (unknown [195.140.142.194]) by postgresql.org (Postfix) with ESMTP id 3092B9FBB55 for ; Tue, 29 May 2007 14:14:16 -0300 (ADT) Received: from par69-8-88-161-102-87.fbx.proxad.net ([88.161.102.87] helo=apollo13) by h07.llord.com with esmtpa (Exim 4.66) (envelope-from ) id 1Ht5Ga-00029y-3f; Tue, 29 May 2007 19:13:52 +0200 Date: Tue, 29 May 2007 19:16:41 +0200 To: "Joost Kraaijeveld" , "postgresql performance list" Subject: Re: Vacuum takes forever From: PFC Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 References: <1180458223.18930.16.camel@panoramix> Content-Transfer-Encoding: Quoted-Printable Message-ID: In-Reply-To: <1180458223.18930.16.camel@panoramix> User-Agent: Opera Mail/9.10 (Linux) X-PopBeforeSMTPSenders: junk@peufeu.com, lists@peufeu.com, peufeu@peufeu.com, pfcaillaud@peufeu.com X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - h07.llord.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - peufeu.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.301 tagged_above=0 required=5 tests=AWL=-0.475, BAYES_50=0.001, RCVD_IN_NJABL_SPAM=2.775 X-Spam-Level: ** X-Archive-Number: 200705/584 X-Sequence-Number: 24974 > Could this be because of my Cost-Based Vacuum Delay settings ? Yeah. It is supposed to slow down VACUUM so it doesn't kill your server= , = but it is not aware of the load. It will also slow it down if there is n= o = load. That is its purpose after all ;) If you want fast vacuum, issue SET vacuum_cost_delay =3D 0; before. > > vacuum_cost_delay =3D 200 > vacuum_cost_page_hit =3D 6 > #vacuum_cost_page_miss =3D 10 # 0-10000 credits > #vacuum_cost_page_dirty =3D 20 # 0-10000 credits > vacuum_cost_limit =3D 100 > > >