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 1rVU5D-00HAxk-Sh for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Feb 2024 10:14:12 +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 1rVU5D-003SLw-1n for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Feb 2024 10:14:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rVU5C-003SLl-6P for pgsql-hackers@lists.postgresql.org; Thu, 01 Feb 2024 10:14:10 +0000 Received: from wfout4-smtp.messagingengine.com ([64.147.123.147]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rVU59-004sVz-18 for pgsql-hackers@lists.postgresql.org; Thu, 01 Feb 2024 10:14:09 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.west.internal (Postfix) with ESMTP id 23CF71C0007F; Thu, 1 Feb 2024 05:14:03 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 01 Feb 2024 05:14:03 -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=fm3; t=1706782442; x= 1706868842; bh=8WzAkUtiZvHJgkl39MDvPImgkfzn4wtYhN6x94Tw9yo=; b=E 5jRwY6bjA5+QXKNhmj9BSOcUE4LTbc1t3ycEc46MpvXcYATq9L6HQoNnuX59Sxvk Aj1EBV1LUhEEYTW/exmtvUCCN3iiQf2ENbpnBO0NcpWhyH/oOCRmiKJWBERklbEu 1PZOzf7GYLAfewVcRA/oftfmwryDOQQA9mOPBZqFs6sXsCNDLRvRQy3Wp5GA1ZGL DM2tYf4ba96RyBpwA3zQkUgKfZDbRjMuKPnFc8w9GGqSkYD0WrCq4d4O5a+6SKla vAia2JOf5MUT3tXTObOosmwqOO83hXOEYXQtRnbL95aYauUAh4rtQ4J4dBOgIsSJ JQRFfP9vvBcaZkjOY9tbA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrfeduuddguddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 1 Feb 2024 05:14:02 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1706782440; bh=Lb0lT6uOU8UyWRW959zbeFh/+KSRtreF9LRXiqkAn/c=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=cXAhm8c01jvX0l33HBCLmogkm6NO/DNrx9C5e+apThJlbqtFjbuvHqFue4DNVda1W u9foVEyhEwKnsj1KA+y0vL5I1yVX2yax4mlWyeMSEDDLdDXuMwHK9yQFrqOol5vL5L jBMVaCGMGMFyWXC/E9sEjbuc9+maOyhFFiVDywda9NE0hbbPCGmaIUuEQ5xBSPpPE/ +Y8iBaDhmfW8vKB0HY0fb0I3eYhEJpT0BS7wJdl5IudyEDgysIiT3cNM8COETn0bB0 TlthBCXhSbuVpN7g+GuN8RBr0jiZ2SmUN9PpoGe0SLgzJBldz6itZZmYVzCRAo9/7K LPL4lKXElJXPw== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id EE9A58B; Thu, 1 Feb 2024 11:14:00 +0100 (CET) Date: Thu, 1 Feb 2024 11:14:00 +0100 From: Alvaro Herrera To: Dilip Kumar Cc: tender wang , PostgreSQL Hackers Subject: Re: SLRU optimization - configurable buffer pool and partitioning the SLRU lock Message-ID: <202402011014.v4qc54smx4yd@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Feb-01, Dilip Kumar wrote: > On Thu, Feb 1, 2024 at 3:19 PM Alvaro Herrera wrote: > > > > postgres -c lc_messages=C -c shared_buffers=$((512*17)) > > > > 2024-02-01 10:48:13.548 CET [1535379] FATAL: invalid value for parameter "transaction_buffers": 17 > > 2024-02-01 10:48:13.548 CET [1535379] DETAIL: "transaction_buffers" must be a multiple of 16 > > Maybe we should resize it to the next multiple of the SLRU_BANK_SIZE > instead of giving an error? Since this is the auto-tuning feature, I think it should use the previous multiple rather than the next, but yeah, something like that. While I have your attention -- if you could give a look to the 0001 patch I posted, I would appreciate it. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "Los trabajadores menos efectivos son sistematicamente llevados al lugar donde pueden hacer el menor daño posible: gerencia." (El principio Dilbert)