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 1hpyc6-0004Ds-SL for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Jul 2019 17:30:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hpyc5-0004kU-Pc for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Jul 2019 17:30:09 +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 1hpyar-0007wQ-MO for pgsql-hackers@lists.postgresql.org; Tue, 23 Jul 2019 17:28:53 +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 1hpyao-0006xS-Bt for pgsql-hackers@postgresql.org; Tue, 23 Jul 2019 17:28:53 +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 x6NHSlUd006763; Tue, 23 Jul 2019 13:28:47 -0400 From: Tom Lane To: Justin Pryzby cc: pgsql-hackers@postgresql.org, Thomas Munro Subject: Re: stress test for parallel workers In-reply-to: <20190723162703.GM22387@telsasoft.com> References: <20190723162703.GM22387@telsasoft.com> Comments: In-reply-to Justin Pryzby message dated "Tue, 23 Jul 2019 11:27:03 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6761.1563902927.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 23 Jul 2019 13:28:47 -0400 Message-ID: <6762.1563902927@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Justin Pryzby writes: > Does anyone have a stress test for parallel workers ? > On a customer's new VM, I got this several times while (trying to) migra= te their DB: > < 2019-07-23 10:33:51.552 CDT postgres >FATAL: postmaster exited during= a parallel transaction We've been seeing this irregularly in the buildfarm, too. I've been suspicious that it's from an OOM kill on the postmaster in the buildfarm cases, but ... > There's nothing in dmesg nor in postgres logs. ... you'd think an OOM kill would show up in the kernel log. (Not necessarily in dmesg, though. Did you try syslog?) > Ideally a minimal test, since I'm apparently going to > have to run under gdb to see how it's dying, or even what process is fai= ling. Like it told you, it's the postmaster that's going away. That's Not Supposed To Happen, of course, but unfortunately Linux' OOM kill heuristic preferentially targets the postmaster when its children are consuming too many resources. If that is the problem, there's some info on working around it at https://www.postgresql.org/docs/current/kernel-resources.html#LINUX-MEMORY= -OVERCOMMIT regards, tom lane