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.96) (envelope-from ) id 1whM91-000Amx-2J for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Jul 2026 06:52:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1whM90-005Br1-0c for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Jul 2026 06:52:30 +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.96) (envelope-from ) id 1whM8z-005Bqq-2z for pgsql-hackers@lists.postgresql.org; Wed, 08 Jul 2026 06:52:30 +0000 Received: from fout-b3-smtp.messagingengine.com ([202.12.124.146]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1whM8x-00000000BoM-2emb for pgsql-hackers@lists.postgresql.org; Wed, 08 Jul 2026 06:52:30 +0000 Received: from phl-compute-11.internal (phl-compute-11.internal [10.202.2.51]) by mailfout.stl.internal (Postfix) with ESMTP id 048ED1D0013A; Wed, 8 Jul 2026 02:52:25 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-11.internal (MEProxy); Wed, 08 Jul 2026 02:52:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; 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=fm2; t=1783493545; x=1783579945; bh=stcKRPglDN zjlvcaYhzZz4e6444sSsBchyQxZAPiN50=; b=fBN2eKAoywrS8h4X9Ac276tlwn Xu+9woRI7hGjxFwVO+oLZE+5nhRHMjsy0A8CEMUReRxTV8HIUkxCRkc295Hwn9g8 Fb3BiTSqUQt2Ze7rijiLHf9og3507ZmLYCLtlwd6t4SzBeMN//6Q5p/q+09ieBNb bzxWFzXeXZ0zIi39SdKZM4CyCituLGNiH/LSTcQ7PORL58F37sP08xjlyHRO8CGC D/qv0xXXo/Q1JHigZHO/W/ns3LPzd+c9GqtMnqtCM9ylq+2eULbOrusd7Mqw5F75 bebvQlms0RAnyaP/1iyx+WcNIkJM/ftDw3GTMHni1EmNyYb91dVy/PX3ORfA== 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=fm2; t= 1783493545; x=1783579945; bh=stcKRPglDNzjlvcaYhzZz4e6444sSsBchyQ xZAPiN50=; b=N0ZTUqU5ap74/QmwlcO4OR47bdErERUxUJ6G45Erbo3UcIJwR69 RIPdCCj8bWQCdcUQf9/ZNH2rtdbZ6FyRPIYuOFn5ntG7SiasYz9zPFjE4LTL/MRu S+sS0p8zNJ/sYcpbFyodQVQbwtPEouJL1r7nVbZQ/22gzs4P5zHHELe+4axbxIFe U1i9y1Pv0iIh+3aT9fw6wpwv1SjhkSHH3NtOuaf3PQz7VTHXJZDeaCfO/Mq+X06q t153kH1KB2nO6nFyOb3LhxFLh1k8sgDFn5DBAFlL0Pi0Z71lSiXeQhhm8YIo5V+z yft+MStgWgH5EegsRK+DDg1Bcn5PMAk3dag== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTFKwcnh3G/ApMHIpzYfLnnFB2ZC9SC9czJQQ2dtjxGM9tk7Uu6+5/MNvHbrWRkMnr lQQmeKeZxXDlaeze6b1hEwFSzVp8w93bZRsz/Ci5etLsMotPBB0wsRs+8c6FyvFjJ5rAFv Qvz5wYXahKKovlTTY3eOarx/u9EmS25bYKE6z/0YsJkHhCMt/nNGoL1RD/S3Rd4dO80jeL hx5ovQ3xARSMdXhfj6ZiKBJK4ry3ziI1C2xVBJFY+uMyGAABwDbuQ8mK7+gFhzEMwg/eqk LhNqJ8iJU+HvgY6p3A3I0kkCTdYcyY9DwLhsCjivDTVLaYv+6sytDS05xmIsmiYNovI+IB rMDNx1EFK7eUEYjN93fibR2soPn4uyUUMltqxpQlwHpN+9p8qy2zlHIXYcS30Tmehbe9Fj 5jgzxcsvuYNGyPMF8YBsyVP9eI5GVPabIKOMLLjX0hCzAEZejonhlDyrdTBvSjZfyvx0DE Hec4Vcg2Vnlm1sp7YTeYjqN9AWRUFeV/yfVZKYLAc7w8WhJ1dz5BT7GpPsrtZbDVU5H2cQ U1URyLp5Xrqo2cCE4sH9acUzdo8Mx4n5fAc3KquQ6395+747Pg1P92sjy5q3VlAAZ4vWC3 XA3Hyim26DmG5foiv8MHdRGoDLsGo/eKSV7s4y2QS4yHU6U5fZcVxjTkkQEQ X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 8 Jul 2026 02:52:24 -0400 (EDT) Date: Wed, 8 Jul 2026 15:52:20 +0900 From: Michael Paquier To: Bertrand Drouvot Cc: pgsql-hackers@lists.postgresql.org, Andres Freund Subject: Re: Add per-backend AIO statistics Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="IFv0zTFoKtIMaYHo" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --IFv0zTFoKtIMaYHo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 07, 2026 at 11:02:03AM +0000, Bertrand Drouvot wrote: > 1/ pg_aios that lists all AIO handles that are currently in use. That sho= ws > what's happening right now, but not what has happened. >=20 > 2/ pg_stat_get_backend_io() that shows how much IO was done, but not how = it > was done. There's no way to see whether IOs ran synchronously or > asynchronously, whether a backend was stalling on handle exhaustion, or h= ow > completions are distributed across backends. While the information may be useful, one thing that sounds very important to me is how this impacts workloads by default. Andres is usually able to catch bottlenecks that everybody else is unable to see, so perhaps checking with him the location of these extra function calls would be a good first step. Your proposal goes down to pgaio_io_stage(), pgaio_io_process_completion() and pgaio_submit_staged() to track these counter increments. -- Michael --IFv0zTFoKtIMaYHo Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmpN86QACgkQnvQgOdby QH0GvBAAjsSLluVZPDh60j8PO0upS6mIrkUudSLBab1RaCsqs6hcLAhr1AL1gTNw rTWaBYDIHTAfmcvpFuY6lchsouTmVc8DVPR2DKxR7D67LtNBJD6uG+DXOMSiBymH knaAiaPfwu5FJFLherN40pGA3EMYaVjDRTKOBU0RycIUMVd/rhfmXdRuLQHDJ/aq MZoXUKBFGS4LDircCGYEBZAQObr9jqTMXb9rN7Qd0eYA3/3OeavVYjGY4TUFXq7F 4n6TJ1ek7mv56s7iUn86a0Ympl+0FMQ8Nrrfra9qmsZSm/YHR6pkmBZJKDrSmnR3 KThM/XWTSn1UwKP9AKG2HdmvXr8mZVCm1oOuoSGH+dD2RXAfaUbdB80+6TdcVN25 uT8b7pZo26JUcsTOVCsf/wQLY4qgPBvPG/xwq0pFtkfmXKxPSQ37E+/6zJuTCqTT dKubho27wb+AslbA1C245dqj4Rfbk7EgZB3mvVLf0dWgGB8tnZoUBKD8ZTatjXHh UIUyMLHoizM2v3luw0P8rxAdmEpC6adqkkRUYY2mCdPKVQzNZM2wyWIXMdAOpq/C eFnB1QZze81VFVHHOKMogr92r7mfoOh0BElxCp4komTFiIy2DM+2Ah5WI6e/eX+F /ct92GYVQHcXjePFZa89Ttk0BgtsyUplbRMNzIxgDHvY6HZt/+M= =oexg -----END PGP SIGNATURE----- --IFv0zTFoKtIMaYHo--