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 1hq30w-00016B-TW for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Jul 2019 22:12:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hq30v-0005J7-JB for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Jul 2019 22:12:05 +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 1hq30v-0005FO-9M for pgsql-hackers@lists.postgresql.org; Tue, 23 Jul 2019 22:12:05 +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 1hq30s-0001TV-Gr for pgsql-hackers@postgresql.org; Tue, 23 Jul 2019 22:12:04 +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 x6NMBw5k032180; Tue, 23 Jul 2019 18:11:58 -0400 From: Tom Lane To: Thomas Munro cc: Justin Pryzby , pgsql-hackers Subject: Re: stress test for parallel workers In-reply-to: References: <20190723162703.GM22387@telsasoft.com> <6762.1563902927@sss.pgh.pa.us> <20190723174222.GO22387@telsasoft.com> Comments: In-reply-to Thomas Munro message dated "Wed, 24 Jul 2019 10:03:25 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <32178.1563919918.1@sss.pgh.pa.us> Date: Tue, 23 Jul 2019 18:11:58 -0400 Message-ID: <32179.1563919918@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: > *I suspect that the only thing implicating parallelism in this failure > is that parallel leaders happen to print out that message if the > postmaster dies while they are waiting for workers; most other places > (probably every other backend in your cluster) just quietly exit. > That tells us something about what's happening, but on its own doesn't > tell us that parallelism plays an important role in the failure mode. I agree that there's little evidence implicating parallelism directly. The reason I'm suspicious about a possible OOM kill is that parallel queries would appear to the OOM killer to be eating more resources than the same workload non-parallel, so that we might be at more hazard of getting OOM'd just because of that. A different theory is that there's some hard-to-hit bug in the postmaster's processing of parallel workers that doesn't apply to regular backends. I've looked for one in a desultory way but not really focused on it. In any case, the evidence from the buildfarm is pretty clear that there is *some* connection. We've seen a lot of recent failures involving "postmaster exited during a parallel transaction", while the number of postmaster failures not involving that is epsilon. regards, tom lane