Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id C647B2E005A for ; Sat, 8 Dec 2007 09:21:35 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 55584-05 for ; Sat, 8 Dec 2007 09:21:25 -0400 (AST) Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id B06CF2E0059 for ; Sat, 8 Dec 2007 09:21:32 -0400 (AST) Received: from perhan.alvh.no-ip.org (200-126-109-160.bk7-dsl.surnet.cl [200.126.109.160]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id lB8DLNFL026001 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 8 Dec 2007 05:21:27 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 46E5F47C7E; Sat, 8 Dec 2007 10:21:23 -0300 (CLST) Date: Sat, 8 Dec 2007 10:21:23 -0300 From: Alvaro Herrera To: Guillaume Cottenceau Cc: pgsql-performance@postgresql.org Subject: Re: Cost-Based Vacuum Delay tuning Message-ID: <20071208132123.GB5319@alvh.no-ip.org> References: <87y7c6aidw.fsf@messaging.mobileway.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87y7c6aidw.fsf@messaging.mobileway.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Sat, 08 Dec 2007 05:21:28 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/106 X-Sequence-Number: 27922 Guillaume Cottenceau wrote: > I have noticed that others (Alvaro, Joshua) suggest to set > vacuum_cost_delay as low as 10 or 20 ms, My suggestion is to set it as *high* as 10 or 20 ms. Compared to the original default of 0ms. This is just because I'm lazy enough not to have done any measuring of the exact consequences of such a setting, and out of fear that a very high value could provoke some sort of disaster. I must admit that changing the vacuum_delay_limit isn't something that I'm used to recommending. Maybe it does make sense considering readahead effects and the new "ring buffer" stuff. -- Alvaro Herrera http://www.amazon.com/gp/registry/CTMLCN8V17R4 "La experiencia nos dice que el hombre peló millones de veces las patatas, pero era forzoso admitir la posibilidad de que en un caso entre millones, las patatas pelarían al hombre" (Ijon Tichy)