X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 953F152B80 for ; Wed, 13 Jul 2005 12:56:11 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 78975-03 for ; Wed, 13 Jul 2005 15:56:01 +0000 (GMT) Received: from cmailg3.svr.pol.co.uk (cmailg3.svr.pol.co.uk [195.92.195.173]) by svr1.postgresql.org (Postfix) with ESMTP id 1055052B16 for ; Wed, 13 Jul 2005 12:56:00 -0300 (ADT) Received: from modem-2867.leopard.dialup.pol.co.uk ([217.135.155.51] helo=192.168.0.102) by cmailg3.svr.pol.co.uk with esmtp (Exim 4.41) id 1DsjaX-000574-9Z; Wed, 13 Jul 2005 16:55:57 +0100 Subject: Re: cost-based vacuum From: Simon Riggs To: Ian Westmacott , Tom Lane Cc: pgsql-performance@postgresql.org In-Reply-To: <1121190651.10346.342.camel@spectre.intellivid.com> References: <1120839902.20657.197.camel@spectre.intellivid.com> <1121081504.3970.53.camel@localhost.localdomain> <1121087266.27427.35.camel@spectre.intellivid.com> <1121093488.3970.70.camel@localhost.localdomain> <1121154338.3970.106.camel@localhost.localdomain> <1121190651.10346.342.camel@spectre.intellivid.com> Content-Type: text/plain Organization: 2nd Quadrant Date: Wed, 13 Jul 2005 16:55:50 +0100 Message-Id: <1121270150.3970.256.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-3) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.052 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200507/140 X-Sequence-Number: 13381 On Tue, 2005-07-12 at 13:50 -0400, Ian Westmacott wrote: > It appears not to matter whether it is one of the tables > being written to that is ANALYZEd. I can ANALYZE an old, > quiescent table, or a system table and see this effect. Can you confirm that this effect is still seen even when the ANALYZE doesn't touch *any* of the tables being accessed? > - this is a dual Xeon. Is that Xeon MP then? > - Looking at oprofile reports for 10-minute runs of a > database-wide VACUUM with vacuum_cost_delay=0 and 1000, > shows the latter spending a lot of time in LWLockAcquire > and LWLockRelease (20% each vs. 2%). Is this associated with high context switching also? Best Regards, Simon Riggs