Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 8DC3C6330A0 for ; Wed, 18 Aug 2010 18:02:58 -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 45131-01-2 for ; Wed, 18 Aug 2010 21:02:50 +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 47B67632D41 for ; Wed, 18 Aug 2010 18:02:51 -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 o7IL2n5W013391; Wed, 18 Aug 2010 17:02:49 -0400 (EDT) To: Josh Berkus cc: PostgreSQL-development Subject: Re: Return of the Solaris vacuum polling problem -- anyone remember this? In-reply-to: <4C6C431B.9010406@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> <8807.1282158479@sss.pgh.pa.us> <4C6C431B.9010406@agliodbs.com> Comments: In-reply-to Josh Berkus message dated "Wed, 18 Aug 2010 13:31:23 -0700" Date: Wed, 18 Aug 2010 17:02:49 -0400 Message-ID: <13390.1282165369@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/1332 X-Sequence-Number: 168135 Josh Berkus writes: >> 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. > Tested that. It does look like if I increase vacuum_cost_limit to 10000 > and lower vacuum_cost_page_dirty to 10, it reads 5-7 pages and writes > 2-3 before each pollsys. The math seems completely wrong on that, > though -- it should be 50 and 30 pages, or similar. I think there could be a lot of cost_delay points getting expended without any effects visible at the level of strace. Maybe try fooling with vacuum_cost_page_hit and vacuum_cost_page_miss, too. regards, tom lane