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 1hq3t8-0003iy-Nd for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Jul 2019 23:08:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hq3t7-00009R-HT for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Jul 2019 23:08: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 1hq3pu-0006H8-Hh for pgsql-hackers@lists.postgresql.org; Tue, 23 Jul 2019 23:04:46 +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 1hq3ps-000232-6G for pgsql-hackers@postgresql.org; Tue, 23 Jul 2019 23:04:46 +0000 Received: by mail-io1-xd42.google.com with SMTP id j5so81304129ioj.8 for ; Tue, 23 Jul 2019 16:04:43 -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=9MsXigMF+9FhuKUvB6gA85FkHe7831V1LVdY9m+JDGU=; b=t+S2mGvIJ+xyOVSXwKkBYCM5Iqc3CtB5Oi1KDb5IPHvrbUMRqfRH/jfpRArT1ogNm2 VlyAL5MzmF51h1VdhB7EnsTdZNvva1K46obH3xAAlE5NaYGSTvFKq5DGIN86F6iHp5E9 V5gSjCmta58pQwsL9kpjuYMQwjUuIZ9CSIHe2VFzqlU0A1WuO2wnmDJiO1q925Rs6neP 34J1k2SrRyTITU6t9iPOI9HZcdK5DiYARzrFQGRNXWTLyQULoUq94RfoTvRuaF0yAQAi l5hPm0+tbaZo5WjB34CUJRMHWah88hcMHV4mvTsQ6+XIyUykM1bK+wRThn1jBbVUuNc/ LWug== 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=9MsXigMF+9FhuKUvB6gA85FkHe7831V1LVdY9m+JDGU=; b=noTpg0Mlv8nHT5EXTFujvaEZ3nKPMkk05ydy7jk2yibJs2EjSkqje8HkNoHRTY9OVG 8YAQKZX9uMIm8/Yc0c93OhEN3JYJaPYjBVUeoo69rUwJOfsHTcFR7TcmWBDOVoVExD1t SqiUZDJpFFiewdeOsKUW0cC9vMAPCx7KmojGj8iS/YlB00slckd7KeKTqdE2QS8tL+g6 zjYxciYzKR+bn2HqxcfrPF5pUePh09gV1ozneDNWAdlhukfNu4Rq/KNkoaNRiQFBsFsu Uk5hoZwkw7R+xoPWSWHletXwpYNgij3aDJDatxDNBRjX3Gdi+329Nv+alla4Mca0Ax4C Brpw== X-Gm-Message-State: APjAAAU4lM4+uoVYG1Gk5zIHn1TjkAgkxhvBR3j84f6SHn1DLkwcFeNv bB2RJmDpszBG+H9HUTgOolY= X-Google-Smtp-Source: APXvYqxfHHyOSgg5EB7UdPuVA2WWZz0YeKGIDKA3061Qvxgxv3ODlYyeqoiKHamepi5ncrJzTS6fbw== X-Received: by 2002:a02:b914:: with SMTP id v20mr76523512jan.83.1563923081685; Tue, 23 Jul 2019 16:04:41 -0700 (PDT) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id u17sm42230255iob.57.2019.07.23.16.04.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jul 2019 16:04:40 -0700 (PDT) Received: by pryzbyj (Postfix, from userid 1000) id 3202F8008C2; Tue, 23 Jul 2019 18:04:40 -0500 (CDT) Date: Tue, 23 Jul 2019 18:04:40 -0500 From: Justin Pryzby To: Thomas Munro Cc: Tom Lane , pgsql-hackers Subject: Re: stress test for parallel workers Message-ID: <20190723230440.GU22387@telsasoft.com> References: <20190723162703.GM22387@telsasoft.com> <6762.1563902927@sss.pgh.pa.us> <20190723174222.GO22387@telsasoft.com> <20190723224255.GT22387@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Jul 24, 2019 at 10:46:42AM +1200, Thomas Munro wrote: > On Wed, Jul 24, 2019 at 10:42 AM Justin Pryzby wrote: > > On Wed, Jul 24, 2019 at 10:03:25AM +1200, Thomas Munro wrote: > > > On Wed, Jul 24, 2019 at 5:42 AM Justin Pryzby wrote: > > > > #2 0x000000000085ddff in errfinish (dummy=) at elog.c:555 > > > > edata = > > > > > > If you have that core, it might be interesting to go to frame 2 and > > > print *edata or edata->saved_errno. > > > > As you saw..unless someone you know a trick, it's "optimized out". > > How about something like this: > > print errorData[errordata_stack_depth] Clever. (gdb) p errordata[errordata_stack_depth] $2 = {elevel = 13986192, output_to_server = 254, output_to_client = 127, show_funcname = false, hide_stmt = false, hide_ctx = false, filename = 0x27b3790 "< %m %u >", lineno = 41745456, funcname = 0x3030313335
, domain = 0x0, context_domain = 0x27cff90 "postgres", sqlerrcode = 0, message = 0xe8800000001
, detail = 0x297a
, detail_log = 0x0, hint = 0xe88
, context = 0x297a
, message_id = 0x0, schema_name = 0x0, table_name = 0x0, column_name = 0x0, datatype_name = 0x0, constraint_name = 0x0, cursorpos = 0, internalpos = 0, internalquery = 0x0, saved_errno = 0, assoc_context = 0x0} (gdb) p errordata $3 = {{elevel = 22, output_to_server = true, output_to_client = false, show_funcname = false, hide_stmt = false, hide_ctx = false, filename = 0x9c4030 "origin.c", lineno = 591, funcname = 0x9c46e0 "CheckPointReplicationOrigin", domain = 0x9ac810 "postgres-11", context_domain = 0x9ac810 "postgres-11", sqlerrcode = 4293, message = 0x27b0e40 "could not write to file \"pg_logical/replorigin_checkpoint.tmp\": No space left on device", detail = 0x0, detail_log = 0x0, hint = 0x0, context = 0x0, message_id = 0x8a7aa8 "could not write to file \"%s\": %m", ... I ought to have remembered that it *was* in fact out of space this AM when this core was dumped (due to having not touched it since scheduling transition to this VM last week). I want to say I'm almost certain it wasn't ENOSPC in other cases, since, failing to find log output, I ran df right after the failure. But that gives me an idea: is it possible there's an issue with files being held opened by worker processes ? Including by parallel workers? Probably WALs, even after they're rotated ? If there were worker processes holding opened lots of rotated WALs, that could cause ENOSPC, but that wouldn't be obvious after they die, since the space would then be freed. Justin