Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iddlO-0007fA-WF for pgsql-hackers@arkaria.postgresql.org; Sat, 07 Dec 2019 17:21:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iddlN-0004ay-LA for pgsql-hackers@arkaria.postgresql.org; Sat, 07 Dec 2019 17:21:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iddlN-0004ar-C0 for pgsql-hackers@lists.postgresql.org; Sat, 07 Dec 2019 17:21:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iddlH-0006Sr-1i for pgsql-hackers@lists.postgresql.org; Sat, 07 Dec 2019 17:21:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id xB7HKpKo030331; Sat, 7 Dec 2019 12:20:51 -0500 From: Tom Lane To: Amit Kapila cc: Andrew Dunstan , Mark Dilger , PostgreSQL Hackers Subject: Re: Windows buildfarm members vs. new async-notify isolation test In-reply-to: References: <32745.1575303812@sss.pgh.pa.us> <7221b3b4-fc7f-404d-5cf6-830d3aa6800d@2ndQuadrant.com> <362bca0b-1c1c-c760-ab19-b5d9a14c69ea@gmail.com> <13003.1575391248@sss.pgh.pa.us> <25746.1575436347@sss.pgh.pa.us> <20102.1575675105@sss.pgh.pa.us> Comments: In-reply-to Amit Kapila message dated "Sat, 07 Dec 2019 09:38:58 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30329.1575739251.1@sss.pgh.pa.us> Date: Sat, 07 Dec 2019 12:20:51 -0500 Message-ID: <30330.1575739251@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Amit Kapila writes: > On Sat, Dec 7, 2019 at 5:01 AM Tom Lane wrote: >> A possible theory as to what's happening is that the kernel scheduler >> is discriminating against listener2's signal management thread(s) >> and not running them until everything else goes idle for a moment. > If we have to believe that theory then why the other similar test is > not showing the problem. There are fewer processes involved in that case, so I don't think it disproves the theory that this is a scheduler glitch. > I have also debugged > it in the Windows box that as soon as the notify sends the signal, the > signal thread receives it and comes out of ConnectNamedPipe and does > the processing to dispatch the signal. Have you done that debugging on a machine that's showing the failure? Since only some of our Windows critters are showing it, it's evidently dependent on environment or Windows version somehow. regards, tom lane