Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 8752763258C for ; Mon, 16 Aug 2010 16:22:34 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 45796-01 for ; Mon, 16 Aug 2010 19:22:26 +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 3A98563252F for ; Mon, 16 Aug 2010 16:22:27 -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 o7GJMHAt019970; Mon, 16 Aug 2010 15:22:17 -0400 (EDT) To: Josh Berkus cc: PostgreSQL-development Subject: Re: Return of the Solaris vacuum polling problem -- anyone remember this? In-reply-to: <4C69827A.409@agliodbs.com> References: <4C69827A.409@agliodbs.com> Comments: In-reply-to Josh Berkus message dated "Mon, 16 Aug 2010 11:24:58 -0700" Date: Mon, 16 Aug 2010 15:22:17 -0400 Message-ID: <19969.1281986537@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201008/1139 X-Sequence-Number: 167942 Josh Berkus writes: > This is something I'd swear we fixed around 8.3.2. However, I'm seeing > it again in production, and was wondering if anyone could remember what > the root cause was and how we fixed it. Hmm, I can't find anything in the 8.3-series CVS logs suggesting that there was a post-8.3.0 fix related to vacuum delays. > The problem is that sometimes (but not the majority of times) autovaccum > with cost_delay is going into a pathological cycle where it polls the > system clock after reading every single disk page of a table. What I find interesting about that trace is the large proportion of writes. That appears to me to indicate that it's *not* a matter of vacuum delays, or at least not just a matter of that. The process seems to be getting involved in having to dump dirty buffers to disk. Perhaps the background writer is malfunctioning? Another idea that comes to mind is that you have vacuum_cost_page_dirty set to an unreasonably large value, so that autovac is blocking whenever it has to write even one page. regards, tom lane