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 1thdF4-004x2i-UG for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Feb 2025 23:31:06 +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 1thdF3-005bIo-Ex for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Feb 2025 23:31:05 +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 1thdF3-005bHo-5B for pgsql-hackers@lists.postgresql.org; Mon, 10 Feb 2025 23:31:05 +0000 Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1thdEy-0007ib-0v for pgsql-hackers@postgresql.org; Mon, 10 Feb 2025 23:31:04 +0000 Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfhigh.stl.internal (Postfix) with ESMTP id 4805125401CC; Mon, 10 Feb 2025 18:30:58 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Mon, 10 Feb 2025 18:30:58 -0500 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=fm3; t=1739230258; x=1739316658; bh=0kjRQDaihi vOp80e2K0QESH3k9zAO+Q3BdcoYNUiV+s=; b=GdBAzB87DMS0pbVI3j6IV7VsPw WHbXYBm5lHcgKTiiZUKE+r0RkbDrs6aR+tClOkrKRJjhdF8cf2okSkISDqNGPMlF S8FKv/3GrN/n9e0y6sZFRRvYUQmjDfkLupm5RRQy47nBn9+S9u9+8CRuWATxN+5o wNA9GcrBhijQsFWuP2lKMKRX3ZE7ehidRJxJXwiHyAGCyVY7p/H+YpNSn72najLV zS7BSwg7bogHsIcVqwc9zBt/Mzk872YEC7bKQMafFfoGs0Q8Q1kIwcqFfwe4Avtp WRqS/Oy2E8nLzopjYsK8cBIla5ewz4xkmaOUhA863KuWB/uC/j7m1Bp9PS3g== 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=fm3; t= 1739230258; x=1739316658; bh=0kjRQDaihivOp80e2K0QESH3k9zAO+Q3Bdc oYNUiV+s=; b=zA2FO0yAaEh9fogh135K2uAJQfUFNfmeLsvfVz3uJysyc6LuzSU 1JrpEtdWLp0ekaNymQywz9Bj6S/NvNjf3+qaCiMzSCHtRA1QH+Io7Lzkq0PpMSiB 8+W3JysNskY6WRNZ5UmUh3mhwiB8U10RpHNRq3tXvFx8qvr2NLI0uGE/VgocJt2B wM2nEmYBCcSJ7n99CBvL6cGe9NsRTd4yyXXYktsMjWqIi8Rjzkc1hoyEhZNnkRNA s8es/YhoobFaGEUgWJwxdKzCNXWTTkqGeDZ8bBIgnCRpa9mbiG3gTG99HL/BtTGt C3WeRiZehj0+2hn5mt4bMt22BLY3PowUqkg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdefleegvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpeffhffvvefukfhfgggtuggjsehttdfstddttddv necuhfhrohhmpeetnhgurhgvshcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgrii gvlhdruggvqeenucggtffrrghtthgvrhhnpeeffffgledvffegtdevlefgtdeggffhvdek gfegteeiveejkeetudelveejhfeugeenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgiivghlrdguvgdpnhgspghr tghpthhtohepiedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprhhjuhhjuhduvd efsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhoshhtghhrvghssehjvghlthgvfhdr nhhlpdhrtghpthhtohepsghruhgtvgesmhhomhhjihgrnhdruhhspdhrtghpthhtohepth horhhikhhoshhhihgrsehoshhsrdhnthhtuggrthgrrdgtohhmpdhrtghpthhtohepphhg shhqlhdqhhgrtghkvghrshesphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepth hglhesshhsshdrphhghhdrphgrrdhush X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 10 Feb 2025 18:30:56 -0500 (EST) Date: Mon, 10 Feb 2025 18:30:56 -0500 From: Andres Freund To: Jelte Fennema-Nio Cc: Tom Lane , torikoshia , pgsql-hackers@postgresql.org, rjuju123@gmail.com, Bruce Momjian Subject: Re: RFC: Allow EXPLAIN to Output Page Fault Information Message-ID: References: <2c9d6eaf26df17bec13bb03bf1e9bcbb@oss.nttdata.com> <2035079.1739124342@sss.pgh.pa.us> 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 Hi, On 2025-02-10 23:52:17 +0100, Jelte Fennema-Nio wrote: > On Mon, 10 Feb 2025 at 14:31, Andres Freund wrote: > > But this will also not work with AIO w/ Buffered IO. Which we hope to use much > > more commonly. > > To be clear, here you mean worker based AIO right? Because it would > work with io_uring based AIO, right? I mostly meant worker based AIO, yes. I haven't checked how accurately these are kept for io_uring. I would hope they are... > > If suddenly I have to reimplement something like this to work with worker > > based IO, it'll certainly take longer to get to AIO. > > I totally understand. But in my opinion it would be completely fine to > decide that these new IO stats are simply not available for worker > based IO. Just like they're not available for Windows either with this > patch. The thing is that you'd often get completely misleading stats. Some of the IO will still be done by the backend itself, so there will be a non-zero value. But it will be a significant undercount, because the asynchronously executed IO won't be tracked (if worker mode is used). Greetings, Andres Freund