pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ryan Johnson <ryan.johnson@cs.utoronto.ca>
Cc: pgsql-performance@postgresql.org
Subject: Re: SSI slows down over time
Date: Sun, 06 Apr 2014 10:55:37 -0400
Message-ID: <13824.1396796137@sss.pgh.pa.us> (raw)
In-Reply-To: <5340BB09.5010101@cs.utoronto.ca>
References: <5340BB09.5010101@cs.utoronto.ca>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

Ryan Johnson <ryan.johnson@cs.utoronto.ca> writes:
> I get a strange behavior across repeated runs: each 100-second run is a 
> bit slower than the one preceding it, when run with SSI (SERIALIZABLE). 
> ... So the question: what should I look for to diagnose/triage this problem? 

In the past I've seen behaviors like this that traced to the range of
"interesting" transaction IDs getting wider as time went on, so that
more pages of pg_clog were hot, leading to more I/O traffic in the
clog SLRU buffers.  Possibly this is some effect like that.

> I've tried linux perf, but all it says is that lots of time is going to 
> LWLock (but callgraph tracing doesn't work in my not-bleeding-edge 
> kernel).

You could recompile with -DLWLOCK_STATS to enable gathering stats on
which LWLocks are heavily contended.  That would be a starting point
for localizing the cause.

			regards, tom lane


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (15+ messages)  latest in thread

Message-ID: <13824.1396796137@sss.pgh.pa.us>
Permalink:  ../13824.1396796137@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13824.1396796137@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, ryan.johnson@cs.utoronto.ca
  Subject: Re: SSI slows down over time
  In-Reply-To: <13824.1396796137@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