Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id E02FF9FB1D5 for ; Wed, 25 Oct 2006 17:52:55 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 77061-05 for ; Wed, 25 Oct 2006 20:51:05 +0000 (UTC) X-Greylist: delayed 00:31:41.610994 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 2185F9FB2E8 for ; Wed, 25 Oct 2006 17:51:00 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from via-smtp3.imconline.net (unknown [66.155.127.63]) by svr4.postgresql.org (Postfix) with ESMTP id 725A95AF03F for ; Wed, 25 Oct 2006 20:19:11 +0000 (GMT) Received: from janestcapital.com ([66.155.124.107]) by via-smtp3.imconline.net with Microsoft SMTPSVC(5.0.2195.6713); Wed, 25 Oct 2006 16:20:31 -0400 Received: from [192.168.250.117] [209.213.205.130] by janestcapital.com with ESMTP (SMTPD32-8.13) id A6ACB5C00B6; Wed, 25 Oct 2006 16:18:52 -0400 Message-ID: <453FC6AB.5090105@janestcapital.com> Date: Wed, 25 Oct 2006 16:18:51 -0400 From: Brian Hurt User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Carlo Stonebanks Cc: pgsql-performance@postgresql.org Subject: Re: commit so slow program looks frozen References: <20061025181910.GW26407@alvh.no-ip.org> In-Reply-To: Content-Type: multipart/alternative; boundary="------------060601060205090307030706" X-OriginalArrivalTime: 25 Oct 2006 20:20:31.0327 (UTC) FILETIME=[04DEB6F0:01C6F873] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.724 tagged_above=0 required=5 tests=FORGED_RCVD_HELO, HTML_30_40, HTML_MESSAGE, HTML_TITLE_EMPTY X-Spam-Level: X-Archive-Number: 200610/534 X-Sequence-Number: 21663 This is a multi-part message in MIME format. --------------060601060205090307030706 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Carlo Stonebanks wrote: >>You may try to figure out what's the process doing (the backend >>obviously, not the frontend (Tcl) process) by attaching to it with >>strace. >> >> > >It's so sad when us poor Windows guys get helpful hints from people assume >that we're smart enough to run *NIX... ;-) > > > >>Maybe it's swamped by a context switch storm (but in that case, probably >>the other processes would be affected as well). >> >> > >What is a context switch storm? (and what a great name for a heavy metal >rock band!) > >Interestingly enough, last night (after the original post) I watched three >of the processes slow down, one after the other - and then stall for so long >that I had assumed they had frozen. They were all stalled on a message that >I had put in the script that indicated they had never returned from a >commit. I have looked into this, and I believe the commits are actually >going through. > > I have a question for you: did you have a long running query keeping open a transaction? I've just noticed the same problem here, but things cleaned up immediately when I aborted the long-running transaction. Note that in my case the long-running transaction wasn't idle in transaction, it was just doing a whole lot of work. Brian --------------060601060205090307030706 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Carlo Stonebanks wrote:
You may try to figure out what's the process doing (the backend
obviously, not the frontend (Tcl) process) by attaching to it with
strace.
    

It's so sad when us poor Windows guys get helpful hints from people assume 
that we're smart enough to run *NIX... ;-)

  
Maybe it's swamped by a context switch storm (but in that case, probably 
the other processes would be affected as well).
    

What is a context switch storm? (and what a great name for a heavy metal 
rock band!)

Interestingly enough, last night (after the original post) I watched three 
of the processes slow down, one after the other - and then stall for so long 
that I had assumed they had frozen. They were all stalled on a message that 
I had put in the script that indicated they had never returned from a 
commit. I have looked into this, and I believe the commits are actually 
going through.
  
I have a question for you: did you have a long running query keeping open a transaction?  I've just noticed the same problem here, but things cleaned up immediately when I aborted the long-running transaction.

Note that in my case the long-running transaction wasn't idle in transaction, it was just doing a whole lot of work.

Brian

--------------060601060205090307030706--