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 1qzvxZ-0025gA-Kf for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Nov 2023 09:31:53 +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 1qzvxY-00DunX-7D for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Nov 2023 09:31:52 +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 1qzvxX-00DunG-0T for pgsql-hackers@lists.postgresql.org; Mon, 06 Nov 2023 09:31:51 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qzvxT-004yRc-5F for pgsql-hackers@lists.postgresql.org; Mon, 06 Nov 2023 09:31:50 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 02BD15C00FD; Mon, 6 Nov 2023 04:31:45 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 06 Nov 2023 04:31:45 -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:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1699263105; x= 1699349505; bh=DAI7tCkX+YcmXXmC3VOc2QCFMLttZ7SHTQsfidD+++0=; b=u 5ko5A5zIG1nSX6cows+NkNN9MjNaTI2qiMMHQCGEM3PbwWeINEXBMQWzVseC2T01 tCZQFvduBsUcz+HoMPsoV7oMAImeOWBNVS43m24uYC6HFICtd3OVXQ24JrX7hFYq /VaeyMdtZM2VMZN7WnJ9SJZiyy0ACyJS/8ZrWhKnXAq8u9BBwtYSsypgGRPWxl9a 4j8B6k41N0eV4L8Oi8SdGuS3cYmq2wWPNfj79Z9C0fMt9V2aZ8S3VrascNRxpKku kcedSBK3w1WixkW77Vrgmlhjl8P9dEC01U3iq0yR7+UaZEK+v2gSzAMXHBeux1I0 C11T99kdqZEIDlbvMpOjg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddugedgtdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 6 Nov 2023 04:31:44 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1699263101; bh=J03PkubHZoi50SYZeTv9t9mCFFPth9FmDol6FHXaz0E=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=gYWH4U7WtLEwEIaw+JoTQeer68sp3HmQxrkpY1TByL/2paydXD3APBWWTaPhji0pr jrHc+SThpdvV0bKQQTWB9CzRFYS7mO02VaUdCThU7J1F9BpcSnkKDOK5nUN3xO8Fa0 YNqUqio55k7VwP/Swp206Ux88eVWDrpu0xnlZHcm1JsGuNL0wlZhknMOczBDnPlOph UxArJdcfbc5sYdCr4N7CqvfGiAsGXFoaKuoFYUb6FNps+TSX/nL7JXXNYRHXsDJiXA Rk1ewzCRoPk+dni2BGPbmqryulE7h8z1Fu2YbjkULJbBGVzXi1Fq6kGyABtzIAukLd m2YlDj5ToL9FA== Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id CC329C1; Mon, 6 Nov 2023 10:31:41 +0100 (CET) Date: Mon, 6 Nov 2023 10:31:41 +0100 From: Alvaro Herrera To: Dilip Kumar Cc: "Andrey M. Borodin" , PostgreSQL Hackers Subject: Re: SLRU optimization - configurable buffer pool and partitioning the SLRU lock Message-ID: <202311060931.kxwrakzicbfb@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 2023-Nov-06, Dilip Kumar wrote: > Yeah so we can see with a small bank size <=16 slots we are seeing > that the fetching page with hash is 30% slower than the sequential > search, but beyond 32 slots sequential search is become slower as you > grow the number of slots whereas with hash it stays constant as > expected. But now as you told if keep the lock partition range > different than the bank size then we might not have any problem by > having more numbers of banks and with that, we can keep the bank size > small like 16. Let me put some more thought into this and get back. > Any other opinions on this? dynahash is notoriously slow, which is why we have simplehash.h since commit b30d3ea824c5. Maybe we could use that instead. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "Escucha y olvidarás; ve y recordarás; haz y entenderás" (Confucio)