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 1rdU2W-005q4A-2y for pgsql-hackers@arkaria.postgresql.org; Fri, 23 Feb 2024 11:48:28 +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 1rdU2T-000dup-3d for pgsql-hackers@arkaria.postgresql.org; Fri, 23 Feb 2024 11:48:25 +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 1rdU2R-000duf-M7 for pgsql-hackers@lists.postgresql.org; Fri, 23 Feb 2024 11:48:25 +0000 Received: from wfhigh4-smtp.messagingengine.com ([64.147.123.155]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rdU2K-000ao1-VY for pgsql-hackers@lists.postgresql.org; Fri, 23 Feb 2024 11:48:22 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfhigh.west.internal (Postfix) with ESMTP id 89C3C1800090; Fri, 23 Feb 2024 06:48:15 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 23 Feb 2024 06:48:15 -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=1708688895; x= 1708775295; bh=GjSaPhlWiBy1506pHuUS9CFXqLMAIlTBbcqAJGShIm4=; b=J ADWGDn+lsu3oonBc1NqW3fdSJVAmbTPQ8vIPpXhJb5nFg+IUOUCgWO5VDDfHbSKk ULXvb/V3yPqPrfd0ezO0saYudriisGiPlWBXoiRAXxd+JbY1Kev1nlD+6FkS1Coy GI24jBLII6LnBWpGMW9ulFDIc40BzR1z8zrphp7Admqq241Gui1XJ5AvrPJq2dkV fme4jSu37cOHXbeStr5IZfXUPTQc0pr+paS3dgDuOI36f6p7SFJSrKR4zsWIkrE5 EZRubwIg1N8/4sAfg/cXQp6c6zd3x6BvOG7EB+G7CK2qI41XnYLRIQL+wsKgljv6 GstLkVdZn91BTjWnOYIrA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeeigdefvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeejkeff gfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 23 Feb 2024 06:48:14 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1708688891; bh=+gwjQdyQE/SDOZPLTg51JQZQlheKHFy3pob5sjcH/Dk=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Kqw91ckph7Wuh6MgtvThimSQt4HOaMn3GTbDh/64bUP8jihXrvD2i49plycptEJ/m 0QlSDGivJooBfINBT25VVS3c4VGrX/ASvgYjU/KviZ7tbzScIW7paMepRMCVwf5huO +KPfACgCYColwuNoE6lMNokPZl86+9ZolAiEJBJCFIMIs+vNY6+qGxbh8iiqc4WJI4 KVJaEwtiLSBhIvYLw6IIB/RADW8o4EkwPAeMzKn5NV6L2R/2H/8qa0o9z9GCnxTl1x y94EzjyzZvA9+lPhA+kGws3KGNJ3A/4Ary0wjLCSy7KCghsGgQ6sQVDADownzm1UIe k9ifWpiipjY0w== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 51A821265; Fri, 23 Feb 2024 12:48:11 +0100 (CET) Date: Fri, 23 Feb 2024 12:48:11 +0100 From: Alvaro Herrera To: "Andrey M. Borodin" Cc: Dilip Kumar , tender wang , PostgreSQL Hackers Subject: Re: SLRU optimization - configurable buffer pool and partitioning the SLRU lock Message-ID: <202402231148.lqruleoappvd@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-23, Andrey M. Borodin wrote: > I'm sure anyone with multiple CPUs should increase, not decrease > previous default of 128 buffers (with 512MB shared buffers). Having > more CPUs (the only way to benefit from more locks) implies bigger > transaction buffers. Sure. > IMO making bank size variable adds unneeded computation overhead, bank > search loops should be unrollable by compiler etc. Makes sense. > Originally there was a patch set step, that packed bank's page > addresses together in one array. It was done to make bank search a > SIMD instruction. Ants Aasma had proposed a rework of the LRU code for better performance. He told me it depended on bank size being 16, so you're right that it's probably not a good idea to make it variable. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/