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.92) (envelope-from ) id 1jAFuL-0000Ae-C5 for pgsql-admin@arkaria.postgresql.org; Fri, 06 Mar 2020 16:33:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jAFuJ-0001kz-C4 for pgsql-admin@arkaria.postgresql.org; Fri, 06 Mar 2020 16:33:03 +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 1jAFuJ-0001ks-2R for pgsql-admin@lists.postgresql.org; Fri, 06 Mar 2020 16:33:03 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jAFuG-0004rA-HJ for pgsql-admin@postgresql.org; Fri, 06 Mar 2020 16:33:02 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 76844A0464; Fri, 6 Mar 2020 16:32:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo05-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo05-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1osc0wBcpr_r; Fri, 6 Mar 2020 16:32:58 +0000 (UTC) Received: from [192.168.2.127] (unknown [8.39.228.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id B92ABA043B; Fri, 6 Mar 2020 16:32:56 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: shm From: Scott Ribe In-Reply-To: <23559.1583508881@sss.pgh.pa.us> Date: Fri, 6 Mar 2020 09:32:55 -0700 Cc: pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: <4D887459-FDD7-467A-892F-E9680B6A902F@elevated-dev.com> References: <565DBAD4-E79D-4EE0-89C4-ABE33AD0C0A7@elevated-dev.com> <1582.1583419905@sss.pgh.pa.us> <7A7FD3C8-763B-4B29-A6FC-720D4DDB6EB7@elevated-dev.com> <23559.1583508881@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3608.60.0.2.5) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Mar 6, 2020, at 8:34 AM, Tom Lane wrote: >=20 > Oh, if it's trying to resize then this is dynamic shared memory, not > the small static block. On most platforms we use POSIX shm_open() for > that purpose, not SysV-style shm ... what have you got > dynamic_shared_memory_type set to? I just confirmed that it is POSIX. (I'm pretty sure we've never even = considered changing the default.) So it would seem that, in this context = at least, the limit applies to it. And the context is containerized, = Kubernetes, where there is no option to set the container's shm limit so = we just have to use the shm mount trick. > It could be that the space limit applies to both APIs anyway, in which > case your choices are to raise the limit or disable parallel query. Well if it's coming from parallel query then I'm OK with the workaround. = Primarily I wanted to make sure it wasn't caused by something = dumb/worthless that we should just not do. (For instance, for historical = reasons, we are temporarily running with max_connections way higher than = is good practice...)