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 1tug2S-00Aday-Nc for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Mar 2025 23:08:01 +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 1tug2R-007KTj-3W for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Mar 2025 23:07:59 +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 1tug2P-007KTY-TG for pgsql-hackers@lists.postgresql.org; Tue, 18 Mar 2025 23:07:58 +0000 Received: from fout-a7-smtp.messagingengine.com ([103.168.172.150]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tug2N-003agU-21 for pgsql-hackers@lists.postgresql.org; Tue, 18 Mar 2025 23:07:57 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id 941821382D36; Tue, 18 Mar 2025 19:07:54 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Tue, 18 Mar 2025 19:07:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1742339274; x=1742425674; bh=FU0MDejh4Y CeE4C7GSHGTSWstg+nCP2IJanbOTUoTJE=; b=EYAVFxW7/7kFhD5G0ot/7go9EB aEnkL1Liqbqo/BnbGQ2efokhBjUibEHAK1j/OUMzY6IPw+8K3nlGJ23WZ+zCYmqB z7NjnZk6ZLH6unhMtSnvpjtJcjagcUXFrfo9duEZRbCaO1A7Lx/AsoJBbSGR/Q9x 9hvWeEgCDeclN2+cNiusVMAMeLzEVB1W1VobpBVw1xr+XnDZ6UZrcnC59+1aASI1 fK4eztxLkDe5KCs5GrnWKXmFmXpkIcle6ZVqZlg9J9OCYEkrwA9DJsDjo3esPv7k TiEhP4UAXEXrmprinLQY5QQ685XgWDr1XiI0/h7mhn4qP6Meah7F3KqNP+MA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1742339274; x=1742425674; bh=FU0MDejh4YCeE4C7GSHGTSWstg+nCP2IJan bOTUoTJE=; b=mVTWYiT/8Jd+TaAP5lkTgiGnvplhOJW9d3KnZ9MAyAHnrAp0V/8 YjtkKtPN6+T9bfOYN8sWBTK534HN5if6v0FYP/kQSi6CDkeazlrTDjCS/UMkHSrZ cCjBzWUuU6N3dTr2To/TBIArlveRHfrCz93FMwqczb+utGHLrKDIf4C8WZ2+KYzP iVk8pJj/05zt0gWEvj+vuBLFfvsAc0fqY5C4gA38Fysjt8XMPqkNVpO27HB+EymS /W+GstRjH8nRvNi/nvultNVTxL0kh0dxbZFyl2yFLW9GfsP9pXdLE76OKExdiksy c0GyF9xKnNFxHCYjfcQyPUQ+IdZCenlrT7g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddugeefjeefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpeffhf fvvefukfhfgggtuggjsehttdfstddttddvnecuhfhrohhmpeetnhgurhgvshcuhfhrvghu nhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtffrrghtthgvrhhnpe effffgledvffegtdevlefgtdeggffhvdekgfegteeiveejkeetudelveejhfeugeenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvsh esrghnrghrrgiivghlrdguvgdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphho uhhtpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtgh hrvghsqhhlrdhorhhgpdhrtghpthhtohepthhglhesshhsshdrphhghhdrphgrrdhush X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 18 Mar 2025 19:07:53 -0400 (EDT) Date: Tue, 18 Mar 2025 19:07:53 -0400 From: Andres Freund To: Tom Lane Cc: pgsql-hackers@lists.postgresql.org Subject: Re: pgsql: aio: Infrastructure for io_method=worker Message-ID: <27fwadt6whe5ufqyrgbrnu3ppfiocaljtt3fufedn6sclvjqll@kotindcvgtoy> References: <593800.1742338428@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <593800.1742338428@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2025-03-18 18:53:48 -0400, Tom Lane wrote: > Andres Freund writes: > > To allow the number of IO workers to be increased without a restart, we need > > to reserve PGPROC entries for the workers unconditionally. This has been > > judged to be worth the cost. If it turns out to be problematic, we can > > introduce a PGC_POSTMASTER GUC to control the maximum number. > > So I see this patch added 32 PGPROCs and hence 32 semaphores to the > system's requirements. Yea - I brought that suspicion up a few times in the thread and in the resulting discussion it wasn't deemed worth introducing a PGC_POSTMASTER guc to control the max. > It's probably time to just abandon the idea of being able to run with > only 60 semaphores. Agreed. It's an absurdly outdated OS default configuration. Realistically one can't run postgres even in a toy scenario without changing it. So the value of being able to test postgres with the default OS settings doesn't seem that high. If it were on a very commonly used platform I would think differently, but net/openbsd ain't that. > I wonder though if we ought to revert 38da05346 and/or 6d0154196 in view 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 more than IO workers do, because autovac workers are included in computations like lock space. But 16 isn't that much either way... Greetings, Andres Freund