X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id DC77A9DC821 for ; Fri, 10 Mar 2006 10:03:18 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 71390-06 for ; Fri, 10 Mar 2006 10:03:20 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.digitalfairway.ca (ns.digitalfairway.ca [207.164.133.170]) by postgresql.org (Postfix) with ESMTP id 8C9779DC80C for ; Fri, 10 Mar 2006 10:03:14 -0400 (AST) Received: from toronto.toronto.digitalfairway.ca (unknown [192.168.100.10]) by mail.digitalfairway.ca (Postfix) with ESMTP id 66B1BA068D for ; Fri, 10 Mar 2006 09:03:17 -0500 (EST) Received: from localhost (toronto.toronto.digitalfairway.ca [127.0.0.1]) by toronto.toronto.digitalfairway.ca (Postfix) with ESMTP id 0EE4F12493D for ; Fri, 10 Mar 2006 09:03:17 -0500 (EST) Received: from toronto.toronto.digitalfairway.ca ([127.0.0.1]) by localhost (toronto.toronto.digitalfairway.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15721-07 for ; Fri, 10 Mar 2006 09:03:16 -0500 (EST) Received: from [192.168.100.50] (unknown [192.168.100.50]) (using SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by toronto.toronto.digitalfairway.ca (Postfix) with ESMTP id D69D112493C for ; Fri, 10 Mar 2006 09:03:16 -0500 (EST) From: Jan de Visser To: pgsql-performance@postgresql.org Subject: Re: Hanging queries on dual CPU windows Date: Fri, 10 Mar 2006 09:03:14 -0500 User-Agent: KMail/1.9.1 References: <6BCB9D8A16AC4241919521715F4D8BCEA35104@algol.sollentuna.se> In-Reply-To: <6BCB9D8A16AC4241919521715F4D8BCEA35104@algol.sollentuna.se> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200603100903.14517.jdevisser@digitalfairway.com> X-Virus-Scanned: amavisd-new at digitalfairway.ca X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.088 required=5 tests=[AWL=0.088] X-Spam-Score: 0.088 X-Spam-Level: X-Archive-Number: 200603/121 X-Sequence-Number: 17558 On Friday 10 March 2006 04:20, Magnus Hagander wrote: > > > Is it possible to get a stack trace from the stuck process? > > > > =A0I dunno > > > > > if you've got anything gdb-equivalent under Windows, but that's the > > > first thing I'd be interested in ... > > > > Here ya go: > > > > http://www.devisser-siderius.com/stack1.jpg > > http://www.devisser-siderius.com/stack2.jpg > > http://www.devisser-siderius.com/stack3.jpg > > > > There are three threads in the process. I guess thread 1 > > (stack1.jpg) is the most interesting. > > > > I also noted that cranking up concurrency in my app > > reproduces the problem in about 4 minutes ;-) > Just reproduced again.=20 > Actually, stack2 looks very interesting. Does it "stay stuck" in > pg_queue_signal? That's really not supposed to happen. Yes it does.=20 > > Also, can you confirm that stack1 actually *stops* in > pgwin32_waitforsinglesocket? Or does it go out and come back? ;-) > > (A good signal of this is to check the cswitch delta. If it stays at zero, > then it's stuck. If it shows any values, that means it's actuall going out > and coming back) I only see CSwitch change once I click OK on the thread window. Once I do=20 that, it goes up to 3 and back to blank again. The 'context switches' count= er=20 does not increase like it does for other processes (like e.g. process=20 explorer itself). Another thing which may or may not be of interest: Nothing is listed in the= =20 'TCP/IP' tab for the stuck process. I would have expected to see at least t= he=20 socket of the client connection there?? > > And finally, is this 8.0 or 8.1? There have been some significant changes > in the handling of the signals between the two... This is 8.1.3 on Windows 2003 Server. Also reproduced on 8.1.0 and 8.1.1 (a= lso=20 on 2K3).=20 > > //Magnus jan =2D-=20 =2D------------------------------------------------------------- Jan de Visser =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 jdevisser@digitalfair= way.com =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Baruk Khazad! Khazad ai-menu! =2D-------------------------------------------------------------