Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 277FD6329BD for ; Wed, 18 Aug 2010 16:08:16 -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 17454-07 for ; Wed, 18 Aug 2010 19:08:07 +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 007946327D4 for ; Wed, 18 Aug 2010 16:08:07 -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 o7IJ80nX008808; Wed, 18 Aug 2010 15:08:00 -0400 (EDT) To: Josh Berkus cc: PostgreSQL-development Subject: Re: Return of the Solaris vacuum polling problem -- anyone remember this? In-reply-to: <4C6C2E4A.1010506@agliodbs.com> References: <4C69827A.409@agliodbs.com> <19969.1281986537@sss.pgh.pa.us> <4C6C2B2B.9060501@agliodbs.com> <8599.1282158010@sss.pgh.pa.us> <4C6C2E4A.1010506@agliodbs.com> Comments: In-reply-to Josh Berkus message dated "Wed, 18 Aug 2010 12:02:34 -0700" Date: Wed, 18 Aug 2010 15:07:59 -0400 Message-ID: <8807.1282158479@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/1322 X-Sequence-Number: 168125 Josh Berkus writes: >> 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. > This is an anti-wraparound vacuum, so it could have something to do with > the hint bits. Maybe it's setting the freeze bit on every page, and > writing them one page at a time? That would explain all the writes, but it doesn't seem to explain why your two servers aren't behaving similarly. > Still don't understand the call to pollsys, even so, though. Most likely that's the libc implementation of the select()-based sleeps for vacuum_cost_delay. I'm still suspicious that the writes are eating more cost_delay points than you think. regards, tom lane