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 1tpznI-00FMjo-9M for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Mar 2025 01:13:00 +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 1tpznH-00BWPl-1M for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Mar 2025 01:12:59 +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 1tpznG-00BWOt-19 for pgsql-hackers@lists.postgresql.org; Thu, 06 Mar 2025 01:12:58 +0000 Received: from fout-b4-smtp.messagingengine.com ([202.12.124.147]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tpznC-001CoB-18 for pgsql-hackers@lists.postgresql.org; Thu, 06 Mar 2025 01:12:57 +0000 Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfout.stl.internal (Postfix) with ESMTP id DF4EE11400E5; Wed, 5 Mar 2025 20:12:52 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Wed, 05 Mar 2025 20:12:52 -0500 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=fm1; t=1741223572; x=1741309972; bh=Aqrm3EmSGd I9Qai4Qf7oGNGhK9jCaA5NIy/QBohvEJA=; b=fdeHIsuIZXMJdHFwNyFcxTclO5 VJw9qAlt6gUJfYX6RoT+isZLgXndp+w4kGYN9MyKPjnpwvK37lpYz78YOh45exAN puBoTH32yk0QvO1dAquUWHWlpAMcKgXPxjArf0rLiZbDFF9wT2J7FCKVE8G9ynR+ JJ3leNdP+Ovhhg61ffoEDjYTW1NcwhA2Q1WwP7FGyC7cjVbxFED1LToOMeBk4MJ7 roIKVQUPNVl2L8TqX5zDrcfKiXwzLQFRB8dvcrciZ3eGklUH4lyQ6y7QBcgDUszd HeWUBBlQEvZpoMQAN1LByZEdjGYkN7XN31ItH8RY5LLoeW7A3ddKcImloSJg== 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= 1741223572; x=1741309972; bh=Aqrm3EmSGdI9Qai4Qf7oGNGhK9jCaA5NIy/ QBohvEJA=; b=7pq4rCFoACz+hcZ/E+fQYfyKnC2jC7bRJ9rFfEZWYEUEC2BwC9i i7SgfAAqB1/HtSaJuOiqiOSTOB9W3gNzj9PArCpjTc+Jq6vh+AkWL2QsAABysyOO hFygZW4+y899EptU6D9S4mnRQYGj/pgDCPnQM+7zuY/x47A1nhKEg+Uw03hwO/Py G2ggY9PSY9zNgldeyt+9FNcDahgE7yFr5w51jwNjEswqsaxqsCRu6ngmxC1XT6lw WsyGHqaTZLecSZU0+S+Bz5v5nvsdEhZFuvTbpRsVMQaHvDscjkOkWSJFZM7MskOo f0cbwwn4MObggi8E6dr765Jg0DoswuLbFSg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddutdeifeeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnegfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefu kfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivg hruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhep teelieefudffhffhtdetleeggeegfffhkeeuveetiefgudduvedutefggeeivdejnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggv lhesphgrqhhuihgvrhdrgiihiidpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtph houhhtpdhrtghpthhtohepsggvrhhtrhgrnhguughrohhuvhhothdrphhgsehgmhgrihhl rdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhosh htghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 5 Mar 2025 20:12:51 -0500 (EST) Date: Thu, 6 Mar 2025 10:12:37 +0900 From: Michael Paquier To: Bertrand Drouvot Cc: Postgres hackers Subject: Re: Monitoring gaps in XLogWalRcvWrite() for the WAL receiver Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="41veOy51BVAaKRZk" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --41veOy51BVAaKRZk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 05, 2025 at 08:04:44AM +0000, Bertrand Drouvot wrote: > On Wed, Mar 05, 2025 at 12:35:26PM +0900, Michael Paquier wrote: >> Perhaps there's a point in backpatching a portion of what's in the >> attached patch (the wait event?), but I am not planning to bother much >> with the stable branches based on the lack of complaints. >=20 > We're not emitting some statistics, so I think that it's hard for users to > complain about something they don't/can't see. Hmm, not exactly actually. I've missed that ff99918c625a mentions that WAL receiver was discarded on purpose, but this was still when pgstats was not in shared memory and still file-based. We scale much better now. It is not that difficult to make XLogWrite() hot enough that it would trigger a lot of calls of pgstat_count_io_op_time() per ms, either, like the WAL receiver, so as long as the timings are behind track_wal_io_timing we're fine. Let's do this at the end, without a backpatch. At least we'll be anle to get better IO metrics for replication setups. -- Michael --41veOy51BVAaKRZk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmfI9oUACgkQnvQgOdby QH07ew/+ItaxRaohhxbQTkIfzbP5iwv2JoOgLLTOHqMsRTajjc9Pa9Chbd4e1vio yUAtWtbcg8vw4ryV0DPSghAVHJxfnZHB9iRctlPFLdNOkzZrcIEIUz/D+FOS2v4L 1Lw2lHpfXYaK4dhkHcxuK5Dj0XpPnsT60BfoKZVOj4hsGtq1EkOzBz+jkNgFrRBJ c3lNCOYGUZVsbP7bj1mO0MZr1yrIaKhQTMklDMbWnthsVzJrwEfurtRiY3HL5FIx 1JCoA2ozLxtB9zE6Yb1BC86ytxNkdCacSGMrm66dzSzX2xNwu9uFqkp7NstVsWJA wzcr0YIkdnSRW2rRk+/V5FrdHl7ZSJARt4nAGwnA1VA79MVLMRi/mKIlL199853I O/wbW3Xewyn9xWTQDgiHSLFJ8QzkPuCyQDpCv7xfqEMOlnaUA9z+VG4sqUsVcV6J Lo1N1I9jVZmV9LXTiHu5eH0s/eEKHBO8qH0E8zzUjeJqwKmLudJ+8avE6uOirwDw VB2Zq1jJdmKF7IbEnNBReRSnGXk+dIJOXDatE2ZWqguboJ8sQDeDyNCyFrxwW5lw tyVv/igEjyMQW0yN0QduV/VRpDTWphE9euRGEBNNSOf/a9g3P6Ix9SsIwrV/AFoM qlmUQED7xBUfWXUjayNGMlsuAdQFiXpA8BR3kCOanTPxF3p8RZY= =GVy0 -----END PGP SIGNATURE----- --41veOy51BVAaKRZk--