Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cDxHr-00058m-GP for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Dec 2016 17:42:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cDxHr-0002Jh-3H for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Dec 2016 17:42:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cDxGS-0000j5-AT for pgsql-hackers@postgresql.org; Mon, 05 Dec 2016 17:41:20 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cDxGP-0002tT-UU for pgsql-hackers@postgresql.org; Mon, 05 Dec 2016 17:41:19 +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 uB5HfGno020996; Mon, 5 Dec 2016 12:41:16 -0500 From: Tom Lane To: Robert Haas cc: PostgreSQL mailing lists Subject: Re: [COMMITTERS] pgsql: Introduce dynamic shared memory areas. In-reply-to: References: <18166.1480955837@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Mon, 05 Dec 2016 12:18:35 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20994.1480959676.1@sss.pgh.pa.us> Date: Mon, 05 Dec 2016 12:41:16 -0500 Message-ID: <20995.1480959676@sss.pgh.pa.us> X-Pg-Spam-Score: -4.9 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robert Haas writes: > It's not quite the same thing, because control->max_total_segment_size > is a total of the memory used by all allocations plus the associated > bookkeeping overhead, not the amount of memory used by a single > allocation. Really? Why doesn't it start out at zero then? Given your later argumentation, I wonder why we're trying to implement any kind of limit at all, rather than just operating on the principle that it's the kernel's problem to enforce a limit. In short, maybe removing max_total_segment_size would do fine. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers