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 1n5B10-00067C-NJ for pgsql-docs@arkaria.postgresql.org; Wed, 05 Jan 2022 18:28:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n5B0z-00064a-M1 for pgsql-docs@arkaria.postgresql.org; Wed, 05 Jan 2022 18:28:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n5B0z-00064R-DG for pgsql-docs@lists.postgresql.org; Wed, 05 Jan 2022 18:28:01 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n5B0w-0003M6-9Y for pgsql-docs@lists.postgresql.org; Wed, 05 Jan 2022 18:28:01 +0000 Received: by mail-wr1-x42e.google.com with SMTP id o3so26634478wrh.10 for ; Wed, 05 Jan 2022 10:27:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=e4KJTN0bvPwxG4rdlbABiFOw9vBx8sDtvr2nfCcq2is=; b=KF+QyzGenuHd4mIz8kHQvKL8HG4mAKhI37WUGy1nvNCCcfZV6oB3vP1MT/JCbPd0kh 53mtOv3BZI5hdQPVi2H34p0WX/IPyPRf2z5jtZF6dHprUpac7Ux3IvPctbTgr5lJfdZO c9Vn+XjbOCmaMbIShlQDmnkPLeNdeIFTV/kBr1Tbe0k89shJWc6UCnF2kbHw0NtRmvmH F4JiPO4dJEcV/2i+k9hV16rAOXZ2yyNnl+uNw70ECgrfMGvd75Ot43r3PVOryJ5ePg2q cu6l8toTbzeQuiJql/+5SOvIzF7yh9rsrNaEICIAeTYN3BlpeDR9n7GkGWiPeHcfPord IOMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=e4KJTN0bvPwxG4rdlbABiFOw9vBx8sDtvr2nfCcq2is=; b=QQz4vvGey0JtPMZ+2JlEc67eiY7vaI2+zWPc0+D8Zah8Ud8T4jeZfXiXqbfeVORJ90 FS6WhLuwrLVdvTIOYie2iUsrgkZQkDhVGIWwvCS5gvBg5NAoU5WmBObdi5EQfz50ahC+ 5RzxikZuZCIO6mfM9YFjDqQdyTypUCqObemcTTLMUgP0144JWD3Axa/JVtOlNHsqVy9j mg7fQOFU5xw+6WgP2P3ztE0RQuws7obmA+DKc3wxc21O9q6E5q2SEJpMEW3FBf0ZY1Eg XC4d/PWG3jzlF8YQyQw+goOcMc7o0rpQ/aeR35CcmZnXYb6ER20UF0BuPN0ZQpD5JCvx c7cQ== X-Gm-Message-State: AOAM530wyIg/BwD+Lt0lJynPuLjY2lqmBWv0zZ9eqBu8y6ee4CsGO4um 8Mrg5pH6QKoEjpKwsTU+8DBGFa0MT8g= X-Google-Smtp-Source: ABdhPJz13AYGBvPsL7xHEFneMz4eBCjZYqhEOk52D1OvDeDBp7qBVii4eAzbV7NLaVvk7xKqtAAlrQ== X-Received: by 2002:adf:d226:: with SMTP id k6mr46440187wrh.243.1641407277164; Wed, 05 Jan 2022 10:27:57 -0800 (PST) Received: from ?IPv6:2a02:8388:e002:8cf0:89ff:6f96:c02c:e66e? (2a02-8388-e002-8cf0-89ff-6f96-c02c-e66e.cable.dynamic.v6.surfer.at. [2a02:8388:e002:8cf0:89ff:6f96:c02c:e66e]) by smtp.googlemail.com with ESMTPSA id n9sm3805869wmq.37.2022.01.05.10.27.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Jan 2022 10:27:56 -0800 (PST) Subject: Re: random_page_cost configuration parameter To: Tom Lane Cc: pgsql-docs@lists.postgresql.org References: <9271c072-e91d-4dc5-c0a9-197f47291671@gmail.com> <1760891.1640707405@sss.pgh.pa.us> From: Mathias Kunter Message-ID: <6bb6023b-fce3-801d-e799-8111cc317e35@gmail.com> Date: Wed, 5 Jan 2022 19:27:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <1760891.1640707405@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-AT Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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? Thank you very much for the clarification! Best regards Mathias Kunter