Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n5xAb-0007Ak-Ie for pgsql-docs@arkaria.postgresql.org; Fri, 07 Jan 2022 21:53:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n5xAZ-0006HH-EN for pgsql-docs@arkaria.postgresql.org; Fri, 07 Jan 2022 21:53:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n5xAY-0006H8-RC for pgsql-docs@lists.postgresql.org; Fri, 07 Jan 2022 21:53:06 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n5xAS-0001J0-0Q for pgsql-docs@lists.postgresql.org; Fri, 07 Jan 2022 21:53:05 +0000 Received: from bruce by momjian.us with local (Exim 4.94.2) (envelope-from ) id 1n5xAO-003CiJ-Tc; Fri, 07 Jan 2022 16:52:56 -0500 Date: Fri, 7 Jan 2022 16:52:56 -0500 From: Bruce Momjian To: Mathias Kunter Cc: Tom Lane , pgsql-docs@lists.postgresql.org Subject: Re: random_page_cost configuration parameter Message-ID: References: <9271c072-e91d-4dc5-c0a9-197f47291671@gmail.com> <1760891.1640707405@sss.pgh.pa.us> <6bb6023b-fce3-801d-e799-8111cc317e35@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6bb6023b-fce3-801d-e799-8111cc317e35@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Jan 5, 2022 at 07:27:55PM +0100, Mathias Kunter wrote: > Am 28.12.21 um 17:03 schrieb Tom Lane: > > Mathias Kunter writes: > > > Consider the situation > > > where the randomly fetched pages are mostly (or even entirely) cached in > > > RAM, but where the sequentially fetched pages must be mostly read from > > > disk. An example for such a scenario is a database system which uses > > > RAM-cached indices. > > > > I think fooling with effective_cache_size is a better way to model > > that situation. > > The default value of effective_cache_size is 4 GB. Which value should be > used instead on a system which only has 4 GB of total RAM, but still uses > RAM-cached indices? This might help: https://momjian.us/main/blogs/pgblog/2012.html#May_4_2012 -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com If only the physical world exists, free will is an illusion.