Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rfdwB-001Ky6-OE for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Feb 2024 10:46:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rfdwA-002kqj-A1 for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Feb 2024 10:46:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rfdw9-002kqX-Tv for pgsql-hackers@lists.postgresql.org; Thu, 29 Feb 2024 10:46:50 +0000 Received: from wfhigh5-smtp.messagingengine.com ([64.147.123.156]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rfdw6-0026ya-5D for pgsql-hackers@lists.postgresql.org; Thu, 29 Feb 2024 10:46:49 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfhigh.west.internal (Postfix) with ESMTP id 8C557180007A; Thu, 29 Feb 2024 05:46:45 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Thu, 29 Feb 2024 05:46:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1709203605; x= 1709290005; bh=Wk7cBrFhKcyOdgAoPATr2DDT3spXKPW632uB+ZLGLIM=; b=r jxOBw/4GeL5Bi02MSNo3JOH+6kt2BQ+Stcb0/NaGYb4htFm3Mszu0c33E/b6KMJf qyVAuulzxhjEomvBdp0kqf92D5oiNQ8LzDf3BlpeoJGsgqkJ/F206pD9rz3pLfsq 7SVkEh+CvpXiKcfUK3LYVuZQuFRQPXzf7Fwfo0tCEd+VFNGPlHRG7CZsb6fYvqtu SVgdtCp3cBWcr8jCzJgrp3zKY6jiL4BcjKJgfU1rHEo0me/M6Md0NQY3WF1ik8za RE8gHQ68PC7IAORRuvubs2a+PGAb5Cu/E1V70xI0pkeDI6Sd1xXZ0rLH/VuEVHqa fT+6GckrvLNzQJxCDvh8A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrgeelgddulecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvfevuffkgggtugfgjgesmhekre ertddtjeenucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgv segrlhhvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepudelkeekgfdttd ettdekgfduvdeiffelteegjeeihfetheekveeftedtuddvhfeunecuffhomhgrihhnpegv nhhtvghrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 29 Feb 2024 05:46:44 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1709203602; bh=M5sjaU9HIrtipK1slMli7l1O3Hd0EjYa3QhmZSREEf0=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=MPBx4GHT6hi2gmSuzvdIzA72NxO1xok1x/ojwEIKuRSwsLc1M3NHanseeSJTtTDtu Mv+YdqS5HfbCKrl1GqbMwM4Eh7LvwGz+YSjmtpl+/325xdEfH8v55zhnU+TUnIOXXf zwU4L5K+GBQ/vxKOKzK7xTewgoV3FW9cgXyPRHmQmMxJtC1n6lVkAsw6QGF4HOAvRU Y7R8eegFACdXM2KplS+nIuyydH4Vaby8T8udzOyL1mC9j57xM2CLg2vV6p24ds3JYg pQ3y99R7VQ/uRWP/QJ9HZ5eEMPrrdj4TVPqz2Y/JBQjik9pqePkrdzUi/It02J5Y4j YKanrSvffT7vA== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 8AB34D40; Thu, 29 Feb 2024 11:46:42 +0100 (CET) Date: Thu, 29 Feb 2024 11:46:42 +0100 From: Alvaro Herrera To: Kyotaro Horiguchi Cc: x4mmm@yandex-team.ru, dilipbalaut@gmail.com, tndrwang@gmail.com, pgsql-hackers@lists.postgresql.org, tomas.vondra@enterprisedb.com Subject: Re: SLRU optimization - configurable buffer pool and partitioning the SLRU lock Message-ID: <202402291046.xpykltdowf22@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="3e552o3yj4zghlrd" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240229.130404.1411153273308142188.horikyota.ntt@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --3e552o3yj4zghlrd Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On 2024-Feb-29, Kyotaro Horiguchi wrote: > At Tue, 27 Feb 2024 18:33:18 +0100, Alvaro Herrera wrote in > > Here's the complete set, with these two names using the singular. > > The commit by the second patch added several GUC descriptions: > > > Sets the size of the dedicated buffer pool used for the commit timestamp cache. > > Some of them, commit_timestamp_buffers, transaction_buffers, > subtransaction_buffers use 0 to mean auto-tuning based on > shared-buffer size. I think it's worth adding an extra_desc such as "0 > to automatically determine this value based on the shared buffer > size". How about this? -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "La victoria es para quien se atreve a estar solo" --3e552o3yj4zghlrd Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename="0001-extra_desc.patch" From d0d7216eb4e2e2e9e71aa849cf90c218bbe2b164 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Thu, 29 Feb 2024 11:45:31 +0100 Subject: [PATCH] extra_desc --- src/backend/utils/misc/guc_tables.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backend/utils/misc/guc_tables.c b/src/backend/utils/misc/guc_tables.c index 93ded31ed9..543a87c659 100644 --- a/src/backend/utils/misc/guc_tables.c +++ b/src/backend/utils/misc/guc_tables.c @@ -2287,7 +2287,7 @@ struct config_int ConfigureNamesInt[] = { {"commit_timestamp_buffers", PGC_POSTMASTER, RESOURCES_MEM, gettext_noop("Sets the size of the dedicated buffer pool used for the commit timestamp cache."), - NULL, + gettext_noop("Specify 0 to have this value determined as a fraction of shared_buffers."), GUC_UNIT_BLOCKS }, &commit_timestamp_buffers, @@ -2342,7 +2342,7 @@ struct config_int ConfigureNamesInt[] = { {"subtransaction_buffers", PGC_POSTMASTER, RESOURCES_MEM, gettext_noop("Sets the size of the dedicated buffer pool used for the sub-transaction cache."), - NULL, + gettext_noop("Specify 0 to have this value determined as a fraction of shared_buffers."), GUC_UNIT_BLOCKS }, &subtransaction_buffers, @@ -2353,7 +2353,7 @@ struct config_int ConfigureNamesInt[] = { {"transaction_buffers", PGC_POSTMASTER, RESOURCES_MEM, gettext_noop("Sets the size of the dedicated buffer pool used for the transaction status cache."), - NULL, + gettext_noop("Specify 0 to have this value determined as a fraction of shared_buffers."), GUC_UNIT_BLOCKS }, &transaction_buffers, @@ -2868,7 +2868,7 @@ struct config_int ConfigureNamesInt[] = { {"wal_buffers", PGC_POSTMASTER, WAL_SETTINGS, gettext_noop("Sets the number of disk-page buffers in shared memory for WAL."), - NULL, + gettext_noop("Specify -1 to have this value determined as a fraction of shared_buffers."), GUC_UNIT_XBLOCKS }, &XLOGbuffers, -- 2.39.2 --3e552o3yj4zghlrd--