Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oLX2g-0003wz-0G for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Aug 2022 21:45:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oLX1g-0003Or-Oq for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Aug 2022 21:44:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oLX1g-0003Oi-FY for pgsql-hackers@lists.postgresql.org; Tue, 09 Aug 2022 21:44:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oLX1e-0007Cl-DU for pgsql-hackers@lists.postgresql.org; Tue, 09 Aug 2022 21:44:36 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 279LiUds087809; Tue, 9 Aug 2022 17:44:30 -0400 From: Tom Lane To: David Rowley cc: Andres Freund , Robert Haas , Yura Sokolov , PostgreSQL Developers Subject: Re: Reducing the chunk header sizes on all memory context types In-reply-to: References: <9dec1bd42fed3e263de294116380e5b51c427267.camel@postgrespro.ru> <20220712174404.polbc5it7j6mzmql@awork3.anarazel.de> <20220809184410.g6yzu6pvttuphag5@awork3.anarazel.de> <36081.1660072917@sss.pgh.pa.us> <20220809210258.o7to2ymxuaq2j76r@awork3.anarazel.de> <85733.1660080180@sss.pgh.pa.us> Comments: In-reply-to David Rowley message dated "Wed, 10 Aug 2022 09:28:52 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <87807.1660081470.1@sss.pgh.pa.us> Date: Tue, 09 Aug 2022 17:44:30 -0400 Message-ID: <87808.1660081470@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk David Rowley writes: > On Wed, 10 Aug 2022 at 09:23, Tom Lane wrote: >> Hmm, I suppose you mean we could reduce 4) if we needed to. Yeah, that >> seems like a reasonable place to buy more bits later if we run out of >> MemoryContextMethodIDs. Should be fine then. > I think he means 3). If 4) was reduced then that would further reduce > the maxBlockSize we could pass when creating a context. At least for > aset.c and generation.c, we don't really need 3) to be 30-bits wide as > the set->allocChunkLimit is almost certainly much smaller than that. Oh, I see: we'd just be further constraining the size of chunk that has to be pushed out as an "external" chunk. Got it. regards, tom lane