Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 97F6A1337B61 for ; Fri, 25 Feb 2011 16:09:41 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 97651-09 for ; Fri, 25 Feb 2011 20:09:35 +0000 (UTC) X-Greylist: delayed 00:19:23.623562 by SQLgrey-1.7.6 Received: from tilapia.imsweb.com (tilapia.imsweb.com [204.132.58.83]) by mail.postgresql.org (Postfix) with ESMTP id 28FE21337B2F for ; Fri, 25 Feb 2011 16:09:34 -0400 (AST) Received: from FALCON.omni.imsweb.com (unknown [172.22.64.17]) by tilapia.imsweb.com (Postfix) with ESMTP id A676B275B3 for ; Fri, 25 Feb 2011 14:50:08 -0500 (EST) Received: from falcon.omni.imsweb.com ([172.22.64.17]) by FALCON.omni.imsweb.com ([172.22.64.17]) with mapi; Fri, 25 Feb 2011 14:50:06 -0500 From: "Vaughn, Adam (IMS)" To: "'pgsql-admin@postgresql.org'" Cc: "Depuy, Scott (IMS)" , "Meagher, Kevin (IMS)" Date: Fri, 25 Feb 2011 14:50:06 -0500 Subject: long running commits Thread-Topic: long running commits Thread-Index: AcvVJTM1NHWLLn/kT4uHEHzPl7VuGw== Message-ID: <6B760A41CEE02F46BADF29B4A874D6010F11C13A63@FALCON.omni.imsweb.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201102/226 X-Sequence-Number: 36865 In the past 2 days we have been experiencing problems on our production ser= ver 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 Li= nux)) #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 15= K RPM. The filer is busy, but not overly so, several other projects are pu= shing more reads/writes than this instance. Dedicated storage network on a non-blocking wire speed Extreme switch. Gig= abit connectivity for both piranha and the NetApp 3170. None of the Ethern= et 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 empl= oyee or agent of the addressee(s), please note that any dissemination, dist= ribution, or copying of this communication is strictly prohibited. If you h= ave received this e-mail in error, please notify the sender of the error.