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 1rf1vB-00F0jz-MB for pgsql-hackers@arkaria.postgresql.org; Tue, 27 Feb 2024 18:11:18 +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 1rf1vA-004oZb-B1 for pgsql-hackers@arkaria.postgresql.org; Tue, 27 Feb 2024 18:11:16 +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 1rf1v9-004oYH-Oc for pgsql-hackers@lists.postgresql.org; Tue, 27 Feb 2024 18:11:16 +0000 Received: from fhigh1-smtp.messagingengine.com ([103.168.172.152]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rf1v5-001Z1g-BY for pgsql-hackers@lists.postgresql.org; Tue, 27 Feb 2024 18:11:15 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 5289011400DA; Tue, 27 Feb 2024 13:11:11 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 27 Feb 2024 13:11:11 -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=1709057471; x= 1709143871; bh=dls5XcqveVQxdow+zhvUy6+PBp6qfnWrwW+niKgfmxg=; b=p ICz9kgNB+CGmXKaXdr+uBHLzcO/QY+A4Khyu0K5t7S/w8na1B4QHHaE+HnhYkQ5I bjiWzv6Xb1e82YQy6bbaMoSa/fOYuj6GE6QavOX9T2RzvbHAigObLqsy7kcPuv4U vTkUy+p6kE9eJjDln0KxBLfgV6TzjkeN48cA5EX+d4dupDf2P91bh+asq40/J9ij 42900HvDVouCcnREdfjCRqW7LU0L5E3K3XxX9yP8XgJ0Z+8GdaohQJqrU/4YgTSP 6hWDaNmrdLB11+zlYTs+XHvvRFVEiIYgGruTKwP7CqjmivhFHin8St6DcjbWparK EIaBG75njgpwOVWvG9qCw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrgeehgdekgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeejkeff gfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 27 Feb 2024 13:11:10 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1709057467; bh=SS5jwMv12Xc59Ny+ggwJSC4ex3lf3qPw6a8nSH1AIVQ=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=GevkSdXrrUcms184OEvWcEBgzqes//FL2F8DSOmGA2pCefxkZjqdiqu9SrB+EjTCY IhaujFjc8eQejY3FUyG5aWShvZYeO3/2DieOu1pubTjA4eeDwyC8bxopdbz+xwoq/E oic/gdas0Ev2KbMf9AWm9ya9SxZysxYy2qHIpbZRAZ+8RsFNvdWi2Wb5ujphLnTqWl FFVe/wzoSC8P5EqTAE0kbMzV99cS5mTe0y/e2w7iiFZH8M0FLwlZ0vz1cZFOXjd54I V17sG6xTk4NtCeOqOIg25CDEbEwIffTf4dIkiwGHPFttxSfLQb+ilaS5xhzKs01jjc jQ2rU1KoFie3Q== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 3350212B0; Tue, 27 Feb 2024 19:11:07 +0100 (CET) Date: Tue, 27 Feb 2024 19:11:07 +0100 From: Alvaro Herrera To: "Andrey M. Borodin" Cc: Dilip Kumar , tender wang , PostgreSQL Hackers , Tomas Vondra Subject: Re: SLRU optimization - configurable buffer pool and partitioning the SLRU lock Message-ID: <202402271811.wimpj3onzqku@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <202402271733.43375fmfpr2f@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Feb-27, Alvaro Herrera wrote: > Here's the complete set, with these two names using the singular. BTW one thing I had not noticed is that before this patch we have minimum shmem size that's lower than the lowest you can go with the new code. This means Postgres may no longer start when extremely tight memory restrictions (and of course use more memory even when idle or with small databases). I wonder to what extent should we make an effort to relax that. For small, largely inactive servers, this is just memory we use for no good reason. However, anything we do here will impact performance on the high end, because as Andrey says this will add calculations and jumps where there are none today. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "We’ve narrowed the problem down to the customer’s pants being in a situation of vigorous combustion" (Robert Haas, Postgres expert extraordinaire)