pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: Autovaccum with cost_delay does not complete on one solaris 5.10 machine
Date: Thu, 15 Apr 2010 15:17:22 -0700
Message-ID: <4BC79072.10901@agliodbs.com> (raw)
In-Reply-To: <20100415202405.GL7259@alvh.no-ip.org>
References: <4BC76C9F.1020200@agliodbs.com>
	<20100415200056.GJ7259@alvh.no-ip.org>
	<16088.1271362441@sss.pgh.pa.us>
	<20100415202405.GL7259@alvh.no-ip.org>


>> 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



view thread (10+ messages)  latest in thread

Message-ID: <4BC79072.10901@agliodbs.com>
Permalink:  ../4BC79072.10901@agliodbs.com/
Also on:    postgresql.org/message-id/4BC79072.10901@agliodbs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: josh@agliodbs.com, alvherre@commandprompt.com, tgl@sss.pgh.pa.us
  Subject: Re: Autovaccum with cost_delay does not complete on one solaris 5.10 machine
  In-Reply-To: <4BC79072.10901@agliodbs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox