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 1hpyo4-0004hR-2P for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Jul 2019 17:42:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hpyo1-0004EO-QT for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Jul 2019 17:42:29 +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 1hpyo1-0004Bv-Dj for pgsql-hackers@lists.postgresql.org; Tue, 23 Jul 2019 17:42:29 +0000 Received: from mail-io1-xd42.google.com ([2607:f8b0:4864:20::d42]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hpyny-00076w-FR for pgsql-hackers@postgresql.org; Tue, 23 Jul 2019 17:42:28 +0000 Received: by mail-io1-xd42.google.com with SMTP id j5so79482041ioj.8 for ; Tue, 23 Jul 2019 10:42:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ELI/zzFV/gqZvac2IKISwsVVXc4Oh+A+iLhfCPOH5IM=; b=hGh9MF3OVr/mEdjKPwLTvC40uhj8Ul4oFIGTj9iQkYH6Lt7xrB4ASnS3AHvzpJ2njX wyg89lvsB6lbVsWTFca5RArFu12XzDL/5/gIOF23G0jGAVLMQd7oK3Juq/Ma1YQrPIWD Sxv9aJ3owi/ITnmVZc8Ptf9W6iP7qx9m1MyFz4Oo0vL4TcJflfE6UMlowr5UUDrNelxP iGljGWXTZ8StzY4mHUud3BsxieX/EjBgQazRfgqKzvawcBDId7Yf/FstewI0Vs0pDjTe 318b0vu3lw78nHDmpQ283nANTqsWG300IHzCXUfiD2z/sTnhdVrUM2AUAixWRDYqVHUv VidQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ELI/zzFV/gqZvac2IKISwsVVXc4Oh+A+iLhfCPOH5IM=; b=HHhV5zPxmfwaaNrRQMVDyFPrkQeYGASXvoy6+L6XLxeKIz6tocSSLG7alRUJhcyc1h q1gBGwyLGdiMCwQkgwtGKtSOVtyijTW5xOgW5vlAfFMkSD/7pD7UD2wrwVjVwiKC0fIz R1ewWr3qK7XCMcgKbI8/rbPK6ikzzcjIoVlBpu2wlxUMXgnv/SHO2jLUBLqtNZB3FLVU hHPWU/jRFjUfvqUUUK8sM6npAhHUGj7BzToz0myEAq9Q8uRvAXM5wrD0uksOjyTw/lGw 1s1lfLDNZsXIXTBtWA6IeMNKwaIX0fGfsEMb229XetWp5pO3ZgaAdld81TzmB4zUX73U WPDQ== X-Gm-Message-State: APjAAAV13DgVcjWlJZrUy7mR4JoxvjP9lo0RT4pYrSEpzVfX9f2TAhs5 iB7NyOFamUAHu5Cxf7XIdy8= X-Google-Smtp-Source: APXvYqxIXOjadysMIr4RMqj/kKTrpCk/1b9sa1VkLB1RxVH90jVKvkKGYfVHECmSHfNJJVanmveFpg== X-Received: by 2002:a5e:8e42:: with SMTP id r2mr68579650ioo.305.1563903744608; Tue, 23 Jul 2019 10:42:24 -0700 (PDT) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id b8sm35688141ioj.16.2019.07.23.10.42.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jul 2019 10:42:24 -0700 (PDT) Received: by pryzbyj (Postfix, from userid 1000) id DCA318008C2; Tue, 23 Jul 2019 12:42:22 -0500 (CDT) Date: Tue, 23 Jul 2019 12:42:22 -0500 From: Justin Pryzby To: Tom Lane Cc: pgsql-hackers@postgresql.org, Thomas Munro Subject: Re: stress test for parallel workers Message-ID: <20190723174222.GO22387@telsasoft.com> References: <20190723162703.GM22387@telsasoft.com> <6762.1563902927@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6762.1563902927@sss.pgh.pa.us> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Jul 23, 2019 at 01:28:47PM -0400, Tom Lane wrote: > ... you'd think an OOM kill would show up in the kernel log. > (Not necessarily in dmesg, though. Did you try syslog?) Nothing in /var/log/messages (nor dmesg ring). I enabled abrtd while trying to reproduce it last week. Since you asked I looked again in messages, and found it'd logged 10 hours ago about this: (gdb) bt #0 0x000000395be32495 in raise () from /lib64/libc.so.6 #1 0x000000395be33c75 in abort () from /lib64/libc.so.6 #2 0x000000000085ddff in errfinish (dummy=) at elog.c:555 #3 0x00000000006f7e94 in CheckPointReplicationOrigin () at origin.c:588 #4 0x00000000004f6ef1 in CheckPointGuts (checkPointRedo=5507491783792, flags=128) at xlog.c:9150 #5 0x00000000004feff6 in CreateCheckPoint (flags=128) at xlog.c:8937 #6 0x00000000006d49e2 in CheckpointerMain () at checkpointer.c:491 #7 0x000000000050fe75 in AuxiliaryProcessMain (argc=2, argv=0x7ffe00d56b00) at bootstrap.c:451 #8 0x00000000006dcf54 in StartChildProcess (type=CheckpointerProcess) at postmaster.c:5337 #9 0x00000000006de78a in reaper (postgres_signal_arg=) at postmaster.c:2867 #10 #11 0x000000395bee1603 in __select_nocancel () from /lib64/libc.so.6 #12 0x00000000006e1488 in ServerLoop (argc=, argv=) at postmaster.c:1671 #13 PostmasterMain (argc=, argv=) at postmaster.c:1380 #14 0x0000000000656420 in main (argc=3, argv=0x27ae410) at main.c:228 #2 0x000000000085ddff in errfinish (dummy=) at elog.c:555 edata = elevel = 22 oldcontext = 0x27e15d0 econtext = 0x0 __func__ = "errfinish" #3 0x00000000006f7e94 in CheckPointReplicationOrigin () at origin.c:588 save_errno = tmppath = 0x9c4518 "pg_logical/replorigin_checkpoint.tmp" path = 0x9c4300 "pg_logical/replorigin_checkpoint" tmpfd = 64 i = magic = 307747550 crc = 4294967295 __func__ = "CheckPointReplicationOrigin" #4 0x00000000004f6ef1 in CheckPointGuts (checkPointRedo=5507491783792, flags=128) at xlog.c:9150 No locals. #5 0x00000000004feff6 in CreateCheckPoint (flags=128) at xlog.c:8937 shutdown = false checkPoint = {redo = 5507491783792, ThisTimeLineID = 1, PrevTimeLineID = 1, fullPageWrites = true, nextXidEpoch = 0, nextXid = 2141308, nextOid = 496731439, nextMulti = 1, nextMultiOffset = 0, oldestXid = 561, oldestXidDB = 1, oldestMulti = 1, oldestMultiDB = 1, time = 1563781930, oldestCommitTsXid = 0, newestCommitTsXid = 0, oldestActiveXid = 2141308} recptr = _logSegNo = Insert = freespace = PriorRedoPtr = curInsert = last_important_lsn = vxids = 0x280afb8 nvxids = 0 __func__ = "CreateCheckPoint" #6 0x00000000006d49e2 in CheckpointerMain () at checkpointer.c:491 ckpt_performed = false do_restartpoint = flags = 128 do_checkpoint = now = 1563781930 elapsed_secs = cur_timeout = rc = local_sigjmp_buf = {{__jmpbuf = {2, -1669940128760174522, 9083146, 0, 140728912407216, 140728912407224, -1669940128812603322, 1670605924426606662}, __mask_was_saved = 1, __saved_mask = {__val = { 18446744066192964103, 0, 246358747096, 140728912407296, 140446084917816, 140446078556040, 9083146, 0, 246346239061, 140446078556040, 140447207471460, 0, 140447207471424, 140446084917816, 0, 7864320}}}} checkpointer_context = 0x27e15d0 __func__ = "CheckpointerMain" Supposedly it's trying to do this: | ereport(PANIC, | (errcode_for_file_access(), | errmsg("could not write to file \"%s\": %m", | tmppath))); And since there's consistently nothing in logs, I'm guessing there's a legitimate write error (legitimate from PG perspective). Storage here is ext4 plus zfs tablespace on top of LVM on top of vmware thin volume. Justin