pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vaughn, Adam (IMS) <VaughnA@imsweb.com>
To: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Cc: Depuy, Scott (IMS) <DepuyS@imsweb.com>
Cc: Meagher, Kevin (IMS) <MeagherK@imsweb.com>
Subject: long running commits
Date: Fri, 25 Feb 2011 14:50:06 -0500
Message-ID: <6B760A41CEE02F46BADF29B4A874D6010F11C13A63@FALCON.omni.imsweb.com> (raw)

In the past 2 days we have been experiencing problems on our production server with very long running commit statements which seem to cause the entire instance to become blocked and non-responsive. These are the log messages for the 2 commit statements (these occurred inside of a 1 hour block)

duration: 945599.193 ms  execute S_2: COMMIT
duration: 967507.896 ms  execute S_2: COMMIT

Can anyone provide some assistance in how we should diagnose this problem (tools) and some possible solutions for solving it? Thanks in advance

Some relevant information about our setup:

PostgreSQL 8.3.9 on x86_64-unknown-linux-gnu, compiled by GCC gcc (GCC) 3.4.3
Sun Fire X4150, single quad core, 32 GB RAM
Suse Enterprise Linux 9 SP #4
Linux version 2.6.5-7.308-smp (geeko@buildhost) (gcc version 3.3.3 (SuSE Linux)) #1 SMP Mon Dec 10 11:36:40 UTC 2007
NetApp FAS3170, RAID_DP on a 13 disk aggregate.  The disks are 450 GB FC 15K RPM.  The filer is busy, but not overly so, several other projects are pushing more reads/writes than this instance.
Dedicated storage network on a non-blocking wire speed Extreme switch.  Gigabit connectivity for both piranha and the NetApp 3170.  None of the Ethernet links are exceeding 60% utilization.

Our non-default configuration parameters:

bgwriter_delay                  100
bgwriter_lru_maxpages         100
bgwriter_lru_multiplier         2.2
checkpoint_completion_target    0.9
checkpoint_segments             60
checkpoint_timeout              900
checkpoint_warning              300
cpu_index_tuple_cost            0.0025
cpu_operator_cost                     0.0008
cpu_tuple_cost                0.005
random_page_cost                      2
shared_buffers                6GB
temp_buffers                    48 MB
wal_buffers                     16 MB
wal_writer_delay                      200ms
work_mem                              48 MB

Information in this e-mail may be confidential. It is intended only for the addressee(s) identified above. If you are not the addressee(s), or an employee or agent of the addressee(s), please note that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this e-mail in error, please notify the sender of the error.



view thread (7+ messages)  latest in thread

Message-ID: <6B760A41CEE02F46BADF29B4A874D6010F11C13A63@FALCON.omni.imsweb.com>
Permalink:  ../6B760A41CEE02F46BADF29B4A874D6010F11C13A63@FALCON.omni.imsweb.com/
Also on:    postgresql.org/message-id/6B760A41CEE02F46BADF29B4A874D6010F11C13A63@FALCON.omni.imsweb.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: VaughnA@imsweb.com, DepuyS@imsweb.com, MeagherK@imsweb.com
  Subject: Re: long running commits
  In-Reply-To: <6B760A41CEE02F46BADF29B4A874D6010F11C13A63@FALCON.omni.imsweb.com>
  References: <6B760A41CEE02F46BADF29B4A874D6010F11C13A63@FALCON.omni.imsweb.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