Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 931206329BD for ; Wed, 18 Aug 2010 16:00:19 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 90737-02 for ; Wed, 18 Aug 2010 19:00:12 +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 7A33163243E for ; Wed, 18 Aug 2010 16:00:12 -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 o7IJ0Amr008600; Wed, 18 Aug 2010 15:00:10 -0400 (EDT) To: Josh Berkus cc: PostgreSQL-development Subject: Re: Return of the Solaris vacuum polling problem -- anyone remember this? In-reply-to: <4C6C2B2B.9060501@agliodbs.com> References: <4C69827A.409@agliodbs.com> <19969.1281986537@sss.pgh.pa.us> <4C6C2B2B.9060501@agliodbs.com> Comments: In-reply-to Josh Berkus message dated "Wed, 18 Aug 2010 11:49:15 -0700" Date: Wed, 18 Aug 2010 15:00:10 -0400 Message-ID: <8599.1282158010@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/1320 X-Sequence-Number: 168123 Josh Berkus writes: >> 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? > You appear to be correct in that it's write-related. Will be testing on > what specificially is producing it. > Note that this is one of two ostensibly duplicate servers, and the issue > has never appeared on the other server. On further reflection, though: since we put in the BufferAccessStrategy code, which was in 8.3, the background writer isn't *supposed* to be very much involved in writing pages that are dirtied by VACUUM. VACUUM runs in a small ring of buffers and is supposed to have to clean its own dirt most of the time. So it's wrong to blame this on the bgwriter not holding up its end. Rather, what you need to be thinking about is how come vacuum seems to be making lots of pages dirty on only one of these machines. regards, tom lane