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 1tuiAQ-00AwEy-72 for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Mar 2025 01:24:22 +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 1tuiAO-009OHZ-MV for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Mar 2025 01:24:20 +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 1tuiAO-009OFf-Ce for pgsql-hackers@lists.postgresql.org; Wed, 19 Mar 2025 01:24:20 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tuiAM-003beg-1R for pgsql-hackers@lists.postgresql.org; Wed, 19 Mar 2025 01:24:19 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 52J1OGIG618498; Tue, 18 Mar 2025 21:24:16 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@lists.postgresql.org Subject: Re: pgsql: aio: Infrastructure for io_method=worker In-reply-to: <27fwadt6whe5ufqyrgbrnu3ppfiocaljtt3fufedn6sclvjqll@kotindcvgtoy> References: <593800.1742338428@sss.pgh.pa.us> <27fwadt6whe5ufqyrgbrnu3ppfiocaljtt3fufedn6sclvjqll@kotindcvgtoy> Comments: In-reply-to Andres Freund message dated "Tue, 18 Mar 2025 19:07:53 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <618496.1742347456.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 18 Mar 2025 21:24:16 -0400 Message-ID: <618497.1742347456@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > On 2025-03-18 18:53:48 -0400, Tom Lane wrote: >> I wonder though if we ought to revert 38da05346 and/or 6d0154196 in vie= w of >> that. > 38da05346 doesn't seem to have much value if it doesn't help us run the = tests > by default - but it also doesn't really hurt. So, shrug, I guess. > 6d0154196 - a higher autovacuum_worker_slots increases resource usage mo= re > than IO workers do, because autovac workers are included in computations= like > lock space. But 16 isn't that much either way... IMV the argument for reverting either would basically be simplicity. It's not even so much the code, as the comments defending these odd looking choices. Future hackers will read those and wonder if the arguments still apply --- and the answer will be "no". 38da05346 was back-patched into 17, and I'd leave it as-is there, since it was holding the line on "can start with 60 semaphores" for that branch. But once we've lost that battle, it's hard to see what it's doing for us. regards, tom lane