Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id C07F86323EB for ; Fri, 16 Apr 2010 16:22:57 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 52675-08 for ; Fri, 16 Apr 2010 19:22:43 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 04411634272 for ; Fri, 16 Apr 2010 16:22:46 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o3GJMgSv013664; Fri, 16 Apr 2010 15:22:42 -0400 (EDT) To: Josh Kupershmidt cc: Greg Smith , Chris , pgsql-performance@postgresql.org Subject: Re: stats collector suddenly causing lots of IO In-reply-to: References: <20100413170105.GA29571@chris-laptop.a2hosting.com> <25952.1271370711@sss.pgh.pa.us> <9738.1271431432@sss.pgh.pa.us> <10082.1271432484@sss.pgh.pa.us> <11152.1271436528@sss.pgh.pa.us> <4BC8A91D.9030709@2ndquadrant.com> Comments: In-reply-to Josh Kupershmidt message dated "Fri, 16 Apr 2010 14:35:56 -0400" Date: Fri, 16 Apr 2010 15:22:42 -0400 Message-ID: <13663.1271445762@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.116 tagged_above=-10 required=5 tests=AWL=-0.206, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201004/225 X-Sequence-Number: 38475 Josh Kupershmidt writes: > name | current_setting | source > ----------------------+-----------------+-------------------- > vacuum_cost_delay | 200ms | configuration file > vacuum_cost_limit | 100 | configuration file > vacuum_cost_page_hit | 6 | configuration file > > It looks like the default which I have of autovacuum_vacuum_cost_limit > = -1, which means it's inheriting the vacuum_cost_limit of 100 I had > set. I'll try bumping vacuum_cost_limit up to 1000 or so. Actually I think the main problem is that cost_delay value, which is probably an order of magnitude too high. The way to limit vacuum's I/O impact on other stuff is to make it take frequent short delays, not have it run full speed and then sleep a long time. In any case, your current settings have got it sleeping way too much. Two WEEKS !!!?? regards, tom lane