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 1rMnl4-006kKm-S2 for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Jan 2024 11:25:31 +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 1rMnl3-004T5y-VG for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Jan 2024 11:25:29 +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 1rMnl3-004T5q-M8 for pgsql-hackers@lists.postgresql.org; Mon, 08 Jan 2024 11:25:29 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rMnl0-000Sos-To for pgsql-hackers@lists.postgresql.org; Mon, 08 Jan 2024 11:25:29 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id D514D3200B97; Mon, 8 Jan 2024 06:25:22 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 08 Jan 2024 06:25:23 -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=fm2; t=1704713122; x= 1704799522; bh=OSxPwCJEphzD6+qPGwA5HAYFHHR7mpO0hIPcuzE/IBo=; b=y ILF4tIv1VhL+/4swr8dCRh93CNS2HqbLVMAuPd1URPkFj/1LoDSOn3Bua51jejrF 5uK6fSYBYHZoqjHYvZy9Mi5oqkl7quBho0cfpHPoCay+M7GLPmnDdXu9MSlv7uhQ IFGDL2LUVRgOmpyDVlWAWY2J5KGWp3NBSMU0MWPHnIjvaqETKjB3JF7vNdmPNwy/ rRBEN+0jQZyZ1Ua91ySTRsdpPQ0I+R6PRtiuldkTfPavYV62hwvNQ0CBYbpd1y43 6oi23YS550TdBsriBkX4qKgVUvUN6y3bo5CiPoSxqSOeG+PThO+RSZTwg/XCIXRV WG5xhSbQmi3VdVphecv9g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdehjedgvdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 8 Jan 2024 06:25:21 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1704713120; bh=DS07TJ+KqXqyu1DOcgCC2GnCJFL8VMDk5U8b6rRW9Qg=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Q6z090sGURMZ6ZuHSsgJbeVSPbdiFXTOPofdLX9+MrMtVZxkZUsx/6rDXLnuCmbkC dAj9xBRX9IAJyTshT2ASEwS9aXq/IdsHoMyn7bWdYDenvikdPx05xT90zIPpGB3yB6 nVV5NlTs4GBEYnK9YO0JmANMdxLIda7nwCGZ06wADpVwYf8Lhi0o2mHOMWPJD/ynIR vBv5jJqexEOJdRs9efAJVsT7Rv9/nuRgdB9ga20q6JIrPeVKr9K6j3A2tgjqk4x3/J xbgLKmxImQBV0YngVwJVRnqviwMFY+IRfUZLX7t76ef/nGTQnNEx3XERzbhlPHS+o8 NFbEzCwdm32GA== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 3165F9D; Mon, 8 Jan 2024 12:25:20 +0100 (CET) Date: Mon, 8 Jan 2024 12:25:20 +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: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Mutt-Fcc: =sent-mail List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk The more I look at TransactionGroupUpdateXidStatus, the more I think it's broken, and while we do have some tests, I don't have confidence that they cover all possible cases. Or, at least, if this code is good, then it hasn't been sufficiently explained. If we have multiple processes trying to write bits to clog, and they are using different banks, then the LWLockConditionalAcquire will be able to acquire the bank lock -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "The saddest aspect of life right now is that science gathers knowledge faster than society gathers wisdom." (Isaac Asimov)