Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 4F33D9FC4D1 for ; Tue, 23 Oct 2007 13:46:58 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 35965-01-7 for ; Tue, 23 Oct 2007 13:46:44 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from pd2mo3so.prod.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10]) by postgresql.org (Postfix) with ESMTP id 379139FC6D4 for ; Tue, 23 Oct 2007 13:46:31 -0300 (ADT) Received: from pd4mr2so.prod.shaw.ca (pd4mr2so-qfe3.prod.shaw.ca [10.0.141.213]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JQD008YWIJQHC90@l-daemon> for pgsql-performance@postgresql.org; Tue, 23 Oct 2007 10:45:26 -0600 (MDT) Received: from pn2ml10so.prod.shaw.ca ([10.0.121.80]) by pd4mr2so.prod.shaw.ca (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JQD00JWYIJQAS10@pd4mr2so.prod.shaw.ca> for pgsql-performance@postgresql.org; Tue, 23 Oct 2007 10:45:27 -0600 (MDT) Received: from [192.168.0.102] ([24.68.192.206]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JQD000ICIJP1I40@l-daemon> for pgsql-performance@postgresql.org; Tue, 23 Oct 2007 10:45:26 -0600 (MDT) Date: Tue, 23 Oct 2007 09:43:08 -0700 From: Ron St-Pierre Subject: Re: 12 hour table vacuums In-reply-to: <19338.1193155911@sss.pgh.pa.us> To: Tom Lane Cc: pgsql-performance@postgresql.org Message-id: <471E249C.2090009@shaw.ca> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit References: <471E18ED.3090704@shaw.ca> <19338.1193155911@sss.pgh.pa.us> User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/259 X-Sequence-Number: 27281 Tom Lane wrote: > Here is your problem: > > >> vacuum_cost_delay = 200 >> > > If you are only vacuuming when nothing else is happening, you shouldn't > be using vacuum_cost_delay at all: set it to 0. In any case this value > is probably much too high. I would imagine that if you watch the > machine while the vacuum is running you'll find both CPU and I/O load > near zero ... which is nice, unless you would like the vacuum to finish > sooner. > Yeah, I've noticed that CPU, mem and I/O load are really low when this is running. I'll change that setting. > In unrelated comments: > > >> maintenance_work_mem = 786432 >> > > That seems awfully high, too. > > Any thoughts on a more reasonable value? >> max_fsm_pages = 70000 >> > > And this possibly too low --- The default appears to be 20000, so I upped it to 70000. I'll try 160000 (max_fsm_relations*16). > are you sure you are not leaking disk > space? > > What do you mean leaking disk space? >> stats_start_collector = off >> stats_command_string = on >> stats_block_level = on >> stats_row_level = on >> > > These are not self-consistent. > > regards, tom lane > >