Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 98A386325ED for ; Thu, 15 Apr 2010 17:24:19 -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 38245-08 for ; Thu, 15 Apr 2010 20:24:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 1C1FA6324E2 for ; Thu, 15 Apr 2010 17:24:08 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id AE45434C211; Thu, 15 Apr 2010 13:24:07 -0700 (PDT) Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pFoW3O795mIe; Thu, 15 Apr 2010 13:24:07 -0700 (PDT) Received: from perhan.alvh.no-ip.org (unknown [190.95.11.237]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 4107234C20F; Thu, 15 Apr 2010 13:24:07 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 2C3EE6E360; Thu, 15 Apr 2010 16:24:05 -0400 (CLT) Date: Thu, 15 Apr 2010 16:24:05 -0400 From: Alvaro Herrera To: Tom Lane Cc: Josh Berkus , pgsql-performance@postgresql.org Subject: Re: Autovaccum with cost_delay does not complete on one solaris 5.10 machine Message-ID: <20100415202405.GL7259@alvh.no-ip.org> References: <4BC76C9F.1020200@agliodbs.com> <20100415200056.GJ7259@alvh.no-ip.org> <16088.1271362441@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16088.1271362441@sss.pgh.pa.us> User-Agent: Mutt/1.5.20 (2009-06-14) 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/191 X-Sequence-Number: 38441 Tom Lane wrote: > Alvaro Herrera writes: > > We don't call pollsys anywhere. Something in Solaris must be doing it > > under the hood. > > 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. But it shouldn't > be sleeping after each page with normal cost_delay parameters, should it? 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). -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.