pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: pgsql-performance@postgresql.org
Subject: Re: Lock pileup causes server to stall
Date: Tue, 11 Nov 2014 09:11:03 -0800
Message-ID: <54624327.1070706@agliodbs.com> (raw)
In-Reply-To: <WM!72fab63e2804f80abf9b24101697eeae3bd0d8641bf7740d51881bef5ab0a8b8949234e4a92412d88fac511fa2939802!@asav-3.01.com>
References: <54611702.50308@agliodbs.com>
	<20141110214000.GL1791@alvin.alvh.no-ip.org>
	<WM!72fab63e2804f80abf9b24101697eeae3bd0d8641bf7740d51881bef5ab0a8b8949234e4a92412d88fac511fa2939802!@asav-3.01.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

On 11/10/2014 01:40 PM, Alvaro Herrera wrote:
> Josh Berkus wrote:
>> All,
>>
>> pg version: 9.3.5
>> RHEL 6.5
>> 128GB/32 cores
>> Configured with shared_buffers=16GB
>> Java/Tomcat/JDBC application
>>
>> Server has an issue that whenever we get lock waits (transaction lock
>> waits, usually on an FK dependancy) lasting over a minute or more than
>> 10 at once, *all* queries on the server slow to a crawl, taking 100X to
>> 400X normal execution times.
> 
> Current FK checking makes you wait if the referenced tuple is modified
> on any indexed column, not just those that are actually used in
> foreign keys.  Maybe this case would be sped up if we optimized that.
> 
>> * This applies even to queries which are against other databases, so
>> it's not purely a lock blocking issue.
> 
> Oh.

Yeah, I think this is more likely a problem with the general lock table
and shared_buffers than anything to do with actual lock-blocks.


-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com


-- 
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 (8+ messages)  latest in thread

Message-ID: <54624327.1070706@agliodbs.com>
Permalink:  ../54624327.1070706@agliodbs.com/
Also on:    postgresql.org/message-id/54624327.1070706@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
  Subject: Re: Lock pileup causes server to stall
  In-Reply-To: <54624327.1070706@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