pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joel Stevenson <joelstevenson@mac.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: LISTEN / NOTIFY performance in 8.3
Date: Mon, 25 Feb 2008 14:57:58 -0500
Message-ID: <1909.1203969478@sss.pgh.pa.us> (raw)
In-Reply-To: <p06240810c3e8c142182c@[192.168.0.9]>
References: <p0624080ec3e8ade18d73@[192.168.0.9]>
	<29568.1203963194@sss.pgh.pa.us>
	<p06240810c3e8c142182c@[192.168.0.9]>

Joel Stevenson <joelstevenson@mac.com> writes:
> I turned on all autovacuum logging and cranked up the test script and 
> have it fork 25 consumers each running 25 iterations.  At that level 
> on my machine I can get the lock waiting to exceed the 1s 
> deadlock_timeout right away but the autovacuum activity on 
> pg_listener is entirely absent until the end when the forked 
> consumers are mostly done and disconnected.

Hmph.  At 25/100 I can get a few complaints about NOTIFY taking more
than 20ms, but it seems to be due to blocking behind autovacuum, as
in this example:

2008-02-25 14:53:41.812 EST 13773 LOG:  automatic vacuum of table "joels.pg_catalog.pg_listener": index scans: 0
	pages: 0 removed, 78 remain
	tuples: 5560 removed, 25 remain
	system usage: CPU 0.00s/0.00u sec elapsed 0.00 sec
2008-02-25 14:53:41.850 EST 13773 LOG:  automatic analyze of table "joels.pg_catalog.pg_listener" system usage: CPU 0.00s/0.00u sec elapsed 0.03 sec
2008-02-25 14:53:41.851 EST 13728 LOG:  duration: 29.270 ms  statement: NOTIFY to_producer
2008-02-25 14:53:41.852 EST 13758 LOG:  duration: 22.835 ms  statement: NOTIFY to_producer


It's weird that the behavior is robust for you but I can't make it
happen at all.  Would you show the output of pg_config, as well as
all your nondefault postgresql.conf settings?

			regards, tom lane



view thread (19+ messages)  latest in thread

Message-ID: <1909.1203969478@sss.pgh.pa.us>
Permalink:  ../1909.1203969478@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1909.1203969478@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, joelstevenson@mac.com
  Subject: Re: LISTEN / NOTIFY performance in 8.3
  In-Reply-To: <1909.1203969478@sss.pgh.pa.us>

* 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