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 1t0SPW-00BXdh-4G for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Oct 2024 21:15:26 +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 1t0SPT-00HUW6-PJ for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Oct 2024 21:15:24 +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 1t0SPT-00HUVy-FQ for pgsql-hackers@lists.postgresql.org; Mon, 14 Oct 2024 21:15:23 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t0SPP-0014Wj-W9 for pgsql-hackers@postgresql.org; Mon, 14 Oct 2024 21:15:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2024011501; h=In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-ID:Content-Description; bh=0bAhSnUqfJcgCA9yHcj3ww6MGdQkMCH+Py/O+nxv9+w=; b=QBxb4vCM5bLdvq6MvLvWSiA5J4 1HJAuDVMfxUeG8roiBGTkU7nGbpgrFdVYk2GwmtVYFFIgdinfgSiAnWeM6ui+U25nFKUvWFSUMCkX byHrI6xCWuaAZ+zafjGTJ4wvA5ObptkLA2xSi8CcVhuOPbmby5ZvWOBqPz/O746BpSAE3mEaf+u3e HYGLhtXHt/fTLYaqhxt6IX6TNT3Ci80zPm8yXZ4aEK/oD6SK9bVbTY6oEgx2JkrapxnmqHx8zvC10 7a5y0kDyIfiexkPLcbvEPKqEd0j8uM2qBNrK0bqiRA5z/kTEduWxoYLlB/RjByv3AIO1RijwHGQpJ bciNnRzQ==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1t0SPO-001NC6-1w; Mon, 14 Oct 2024 17:15:18 -0400 Date: Mon, 14 Oct 2024 17:15:18 -0400 From: Bruce Momjian To: Greg Sabino Mullane Cc: Dagfinn Ilmari =?utf-8?Q?Manns=C3=A5ker?= , pgsql-hackers Subject: Re: Changing the default random_page_cost value Message-ID: References: <877caxaxt6.fsf@wibble.ilmari.org> 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 Mon, Sep 30, 2024 at 10:05:29AM -0400, Greg Sabino Mullane wrote: > On Fri, Sep 27, 2024 at 12:03 PM Dagfinn Ilmari Mannsåker > wrote: > > It might also be worth mentioning cloudy block storage (e.g. AWS' EBS), > which is typically backed by SSDs, but has extra network latency. > > > That seems a little too in the weeds for me, but wording suggestions are > welcome. To get things moving forward, I made a doc patch which changes a few > things, namely: > > * Mentions the distinction between ssd and hdd right up front. > * Moves the tablespace talk to the very end, as tablespace use is getting rarer > (again, thanks in part to ssds) > * Mentions the capability to set per-database and per-role since we mention > per-tablespace. > * Removes a lot of the talk of caches and justifications for the 4.0 setting. > While those are interesting, I've been tuning this parameter for many years and > never really cared about the "90% cache rate". The proof is in the pudding: rpc > is the canonical "try it and see" parameter. Tweak. Test. Repeat. I am not a fan of this patch. I don't see why _removing_ the magnetic part helps because you then have no logic for any 1.2 was chosen. I would put the magnetic in a separate paragraph perhaps, and recommend 4.0 for it. Also, per-tablespace makes sense because of physical media differences, but what purpose would per-database and per-role serve? Also, per-tablespace is not a connection-activated item like the other two. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com When a patient asks the doctor, "Am I going to die?", he means "Am I going to die soon?"