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 1rXf1l-00BtEs-DB for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Feb 2024 10:19:37 +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 1rXf1i-009nWb-S6 for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Feb 2024 10:19:34 +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 1rXf1i-009nW2-H3 for pgsql-hackers@lists.postgresql.org; Wed, 07 Feb 2024 10:19:34 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rXf1g-005WG3-1x for pgsql-hackers@lists.postgresql.org; Wed, 07 Feb 2024 10:19:33 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 70DD15C0222; Wed, 7 Feb 2024 05:19:31 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 07 Feb 2024 05:19:31 -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=1707301171; x= 1707387571; bh=Pa2Yq+T/8w2tuuHBKx5UmJglyhMzEp7j73EywU4IOo0=; b=d 59A3S5pe0J3eF6SKrhGg2VKuQf+eydgarUBj8kYPNRa8L47SR3IhxPAxf1B8OemN 1E1LRKZg6ciYSmjK9xWjd4qNIRPbvj8GoIYAscG+mox84bVIwIxOT6j0M4bPFdz/ MBdDkZXfORr7D/ke+qpvrKLB4CfO3Li9GKbsC4QsKtiLBA5Yaa1hCL0XmuRPqlCN 3DjgPMjLSGMUyLRYYkaWxvsemmWcyO5rzxyDKeKtqwvCGXKZ4zAqOWvKXS9rG+y9 nTuol2szYxlDSh5XywQI9KvOV0ltFPgPPEpgBgrB09syw5nS+D040VMMnnNKBbem loCjP9mCiAcDuaFDIMFpg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrtddvgdduudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeejkeff gfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 7 Feb 2024 05:19:30 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1707301169; bh=rGgfztcg/o/In/Hh5GvfZUIkxNDeSOpZJ1Oh4hFqPkM=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=k+4BBh2kZAYRlen7W+zXnyQLJ+WLCCj3YWcVeZjGmuv/5FkNpjmAbEGiFcr9HE37g jmziMRK2VwEJOVyn+dia1NOVpAuNZy6oOMCmndMrQaXlw/vs0HoKQQWtaA/8WYHpzc BTmaPSgLGuMhOfMjXriQd2vwS6G2m59YcufZwZHuzkfFSdf8Z06NXjzHYWfMmBjJK2 bVvwKfo/nPEVYwnNqWoH5Vbip4791/0DXUZbE5CXvuCgDBElw9wPjrYbvXE2j7FWsZ O8Afy4YUUOd8Hi6RoqfOzllCiJJWBLLH3nezjdTxf7dQCGpu+MfQu27slgimGbqbeV HBFgGpA0zMf2w== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 39FB2BA3; Wed, 7 Feb 2024 11:19:29 +0100 (CET) Date: Wed, 7 Feb 2024 11:19:29 +0100 From: Alvaro Herrera To: Dilip Kumar Cc: "Andrey M. Borodin" , tender wang , PostgreSQL Hackers Subject: Re: SLRU optimization - configurable buffer pool and partitioning the SLRU lock Message-ID: <202402071019.egh7fzb2tlln@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-07, Dilip Kumar wrote: > On Tue, Feb 6, 2024 at 8:55 PM Alvaro Herrera wrote: > > > > I made CLOGShmemBuffers, CommitTsShmemBuffers and SUBTRANSShmemBuffers > > compute a number that's multiple of SLRU_BANK_SIZE. But it's a crock, > > because we don't have that macro at that point, so I just used constant > > 16. Obviously need a better solution for this. > > If we define SLRU_BANK_SIZE in slur.h then we can use it here right, > because these files are anyway include slur.h so. Sure, but is that really what we want? > > I've been wondering whether we should add a "slru" to the name of the > > GUCs: > > > > commit_timestamp_slru_buffers > > transaction_slru_buffers > > etc > > I am not sure we are exposing anything related to SLRU to the user, We do -- we have pg_stat_slru already. > I mean transaction_buffers should make sense for the user that it > stores transaction-related data in some buffers pool but whether that > buffer pool is called SLRU or not doesn't matter much to the user > IMHO. Yeah, that's exactly what my initial argument was for naming these this way. But since the term slru already escaped into the wild via the pg_stat_slru view, perhaps it helps users make the connection between these things. Alternatively, we can cross-reference each term from the other's documentation and call it a day. Another painful point is that pg_stat_slru uses internal names in the data it outputs, which obviously do not match the new GUCs. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "Uno puede defenderse de los ataques; contra los elogios se esta indefenso"