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 1tudEj-00AJzD-Ji for pgsql-committers@arkaria.postgresql.org; Tue, 18 Mar 2025 20:08:29 +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 1tudEh-004M44-Al for pgsql-committers@arkaria.postgresql.org; Tue, 18 Mar 2025 20:08:27 +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 1tudEh-004M3v-0O for pgsql-committers@lists.postgresql.org; Tue, 18 Mar 2025 20:08:27 +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.96) (envelope-from ) id 1tudEc-003cux-2s for pgsql-committers@lists.postgresql.org; Tue, 18 Mar 2025 20:08:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2025010100; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description; bh=nVXChRO4CT8zjAf4cEZ1uxnu0Wh/DyFvdzkcPm8r10M=; b=MzvPg 9qfEMueH/mxScF1f1Y4ohJPP0RmveDVadMswNSHCZBjKyd2TsXZ00aI93PxxBdkMbjbLcBwdcwTpw JK4Ye+GpxWqEyceIhUPBU7aHzs2pLBeKJyl9b0BP2Sl19Pv0JlFLcFXCp6XrkVWHbo39eIW5fbdzA b/K31OSxAFwEGo6D7n9bHH6zia+p/r4pc6Dq+D7kx3dPY1kFa0GVWT6NE+sfdom/kXepHHdOerZed GmINe+pjGVMTznatqyIe8cA2TsqXMsC3d5/GeeCV9Q8cSYJ5GPnnwyMIhPiPjXyN/FdGd0VE5hC0t WDsfGjhGWf3igTCp9FhjCbkTtUMXQ==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1tudEc-001k3V-2O; Tue, 18 Mar 2025 16:08:22 -0400 Date: Tue, 18 Mar 2025 16:08:22 -0400 From: Bruce Momjian To: Melanie Plageman Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Increase default maintenance_io_concurrency to 16 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This commit makes our default random_page_cost = 4 out of line with these new settings (assumes modern SSD/NAS/SAN hardware) and more out of line with reality. --------------------------------------------------------------------------- On Tue, Mar 18, 2025 at 01:08:47PM +0000, Melanie Plageman wrote: > Increase default maintenance_io_concurrency to 16 > > Since its introduction in fc34b0d9de27a, the default > maintenance_io_concurrency has been larger than the default > effective_io_concurrency. maintenance_io_concurrency primarily > controlled prefetching done on behalf of the whole system, for > operations like recovery. Therefore it makes sense for it to have a > value equal to or greater than effective_io_concurrency, which controls > I/O concurrency for reading a relation in a bitmap heap scan. > > ff79b5b2ab increased effective_io_concurrency to 16, so we'll increase > maintenance_io_concurrency as well. For now, though, we'll keep the > defaults of effective_io_concurrency and maintenance_io_concurrency > equal to one another (16). > > On fast, high IOPs systems, significantly higher values of > maintenance_io_concurrency are observably beneficial [1]. However, such > values would flood low IOPs systems and increase overall system I/O > latency. > > It is worth mentioning that since 9256822608f and c3e775e608f, > maintenance_io_concurrency also controls the I/O concurrency of each > vacuum worker. Since many autovacuum workers may be simultaneously > issuing I/Os, we want to keep maintenance_io_concurrency appropriately > conservative. > > [1] https://postgr.es/m/c5d52837-6256-0556-ac8c-d6d3d558820a%40enterprisedb.com > > Suggested-by: Jakub Wartak > Discussion: https://postgr.es/m/CAKZiRmxdHQaU%2B2Zpe6d%3Dx%3D0vigJ1sfWwwVYLJAf%3Dud_wQ_VcUw%40mail.gmail.com > > Branch > ------ > master > > Details > ------- > https://git.postgresql.org/pg/commitdiff/cc6be07ebde2aef7cc0507f997f563ce77c00a00 > > Modified Files > -------------- > doc/src/sgml/config.sgml | 8 ++++---- > src/backend/utils/misc/postgresql.conf.sample | 2 +- > src/include/storage/bufmgr.h | 2 +- > 3 files changed, 6 insertions(+), 6 deletions(-) > -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.