Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id E2D2A63296B for ; Thu, 15 Apr 2010 19:17:50 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 60950-01 for ; Thu, 15 Apr 2010 22:17:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from glacier.frostconsultingllc.com (glacier.frostconsultingllc.com [69.36.227.170]) by mail.postgresql.org (Postfix) with ESMTP id 2B160632414 for ; Thu, 15 Apr 2010 19:17:29 -0300 (ADT) Received: from dsl081-245-111.sfo1.dsl.speakeasy.net ([64.81.245.111] helo=Sidney-Stratton.local) by glacier.frostconsultingllc.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.69) (envelope-from ) id 1O2XNC-00028m-Rk; Thu, 15 Apr 2010 15:17:25 -0700 Message-ID: <4BC79072.10901@agliodbs.com> Date: Thu, 15 Apr 2010 15:17:22 -0700 From: Josh Berkus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: Alvaro Herrera CC: Tom Lane , pgsql-performance@postgresql.org Subject: Re: Autovaccum with cost_delay does not complete on one solaris 5.10 machine References: <4BC76C9F.1020200@agliodbs.com> <20100415200056.GJ7259@alvh.no-ip.org> <16088.1271362441@sss.pgh.pa.us> <20100415202405.GL7259@alvh.no-ip.org> In-Reply-To: <20100415202405.GL7259@alvh.no-ip.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201004/192 X-Sequence-Number: 38442 >> pg_usleep calls select(), and some googling indicates that select() is >> implemented as pollsys() on recent Solaris versions. So Josh's >> assumption that those are delay calls seems plausible. It's certainly the behavior I'm seeing otherwise. In "normal operation", the number of pages read between pollsys is consistent with the vacuum delay settings. >> But it shouldn't >> be sleeping after each page with normal cost_delay parameters, should it? Right, that's why I find this puzzling. If the problem was easier to reproduce it would be easier to analyze. > Certainly not ... The only explanation would be that the cost balance > gets over the limit very frequently. So one of the params would have to > be abnormally high (vacuum_cost_page_hit, vacuum_cost_page_miss, > vacuum_cost_page_dirty). Nope, all defaults. And, all identical to the other server which is behaving normally. Honestly, I mostly posted this in hopes that some other Solaris user would speak up to having seen the same thing. -- -- Josh Berkus PostgreSQL Experts Inc. http://www.pgexperts.com