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 1v1CU6-005eh8-GQ for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Sep 2025 23:31:46 +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 1v1CU5-008xNQ-5l for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Sep 2025 23:31:45 +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 1v1CU4-008xNI-Sa for pgsql-hackers@lists.postgresql.org; Tue, 23 Sep 2025 23:31:44 +0000 Received: from fhigh-a5-smtp.messagingengine.com ([103.168.172.156]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1v1CU1-002WCm-0A for pgsql-hackers@lists.postgresql.org; Tue, 23 Sep 2025 23:31:44 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.phl.internal (Postfix) with ESMTP id 1843A1400060; Tue, 23 Sep 2025 19:31:41 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Tue, 23 Sep 2025 19:31:41 -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=fm1; t=1758670301; x=1758756701; bh=vvHbsR1x0Z BmjSZY+Grf3FULFiI4A/pyMtA3Kt3r+rk=; b=lHti5YUY+iZzssCTVYeGktio60 VBBmncaJAbpcQDzXbj487ljOETn1ByxFmBhLgn1Bkuytrj7oPPQskpcCxBc05je7 aKHkALL3ycBbeb2dBTdpvIrearJLc3XevRvhwhEn7wpMroK+WEQN4TXqOkANGlYl B0yoz2ZI3CTh2YEf9bhWYgu6Ym2lftSD6A5IBHseIvxnf1Q4lyHCFqlfAvcWZ2Ye VGTCUOL4wn1npVBdLN/k47zMMYxAKt8orWNmDtI3r24WE+5s1pGQp7GicxBdHGT6 d8acUeEmwIDKKLtRg2dNQjRPW5l38cDWfyqdWC4L1fHL+Vcca3h6MaOjnTAA== 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= 1758670301; x=1758756701; bh=vvHbsR1x0ZBmjSZY+Grf3FULFiI4A/pyMtA 3Kt3r+rk=; b=lGVVcGQK2EdU9cOP+UBDOSS86JcIS4aSKksDBJ5cAZuDnto4VSl K2Nqss4gi0F7qPlP/2vFNEWbPCzCq3Dl8cwgCJUPpTg8/4/dmgyhuaz8La5P8BH9 92dMwQsuQeV5dNUPpJ1yWX6rGrI+a6s4PiQyLsYOMjGPES5VX4g474WNJusC+TYc 3Tnr1X3MHL6inxotct3v5kh//3vfyXkNplhi56hZN1czwvkwQJTPLLl9f2q4dANz UGAcaUA1o/VNsgdnD78WODcFQFsYno71Gc/blaIksjDYsn4KXC78/3WWro2HyMfr qGWe97tTlCrrJ82oJnnffls/4OE+uOgXKaw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdeivddthecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtuden ucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquh hivghrrdighiiiqeenucggtffrrghtthgvrhhnpefgheehgfdufedugfefleegieffgeef hfekfeffvdehfedutdehteegleetveekteenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipdhn sggprhgtphhtthhopeehpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegvgigtlh hushhiohhnsehgmhgrihhlrdgtohhmpdhrtghpthhtohepmhgsrghntghksehgmhigrdhn vghtpdhrtghpthhtohepthhglhesshhsshdrphhghhdrphgrrdhushdprhgtphhtthhope hpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrghdp rhgtphhtthhopehthhhomhgrshdrmhhunhhrohesghhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 23 Sep 2025 19:31:39 -0400 (EDT) Date: Wed, 24 Sep 2025 08:31:27 +0900 From: Michael Paquier To: Alexander Lakhin Cc: Michael Banck , Tom Lane , pgsql-hackers@lists.postgresql.org, Thomas Munro Subject: Re: GNU/Hurd portability patches Message-ID: References: <6862e8d1.050a0220.194b8d.76fa@mx.google.com> <3245994.1751388110@sss.pgh.pa.us> <68643ea2.050a0220.128f53.3f77@mx.google.com> <2874644f-6431-41f4-abe2-99e5ab052606@gmail.com> <68d0f931.050a0220.3185e0.19ae@mx.google.com> <283c3d69-ef32-4391-9ea3-68e47c9dea31@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="io6hRejmZiwGjXrd" Content-Disposition: inline In-Reply-To: <283c3d69-ef32-4391-9ea3-68e47c9dea31@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --io6hRejmZiwGjXrd Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 22, 2025 at 11:30:00PM +0300, Alexander Lakhin wrote: > I reproduced the issue locally and found that > =A0=A0=A0=A0=A0=A0=A0 /* total elapsed time in this function call */ > =A0=A0=A0=A0=A0=A0=A0 INSTR_TIME_SET_CURRENT(total); > =A0=A0=A0=A0=A0=A0=A0 INSTR_TIME_SUBTRACT(total, fcu->start); > sometimes gives total.ticks =3D 0. >=20 > I tried the test program from [2] and got on my VM: > went backwards 0 out of 10000000 times > (three times) >=20 > But I've created my own test program (see attached), which shows: > for i in {1..1000}; do printf "ITERATION $i "; ./tt 100 || break; done > =A0ITERATION 1 t1: 55873639081080, t2: 55873639084090, t2 - t1: 3010 (r: = 4950) > =A0ITERATION 2 t1: 55873641019440, t2: 55873641025700, t2 - t1: 6260 (r: = 4950) > =A0ITERATION 3 t1: 55873642794200, t2: 55873642797130, t2 - t1: 2930 (r: = 4950) > ... > =A0ITERATION 23 t1: 55873675001590, t2: 55873675001590, t2 - t1: 0 (r: 49= 50) >=20 > I don't know how to test the patch committed, but if you can, that would > be nice. We've had this exact same issue of a clock going backwards with one of the netbsd animals on an older version not supported anymore by upstream and that has been kicked out of the buildfarm, as far as I recall. This has created some disturbance in the regression tests causing EXPLAIN plan outputs we did not expect, in terms of extra negative signs and the animal showing red periodically. So yes, this random factor would be annoying in the buildfarm. -- Michael --io6hRejmZiwGjXrd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmjTLc8ACgkQnvQgOdby QH1CHQ//WMdKhNSivtwBM/cwkyvNOcpJVijZ7dzqUHoEPuqDS8xFLyMYMCThK8pE 1ySlVf+kzUs+ZmbfzlsCD9/4iOiKSV8K66PNKmc5HRG9UlMkGGWBKN0s5vpYekjs 5MP6r/BqLJOjqaqf7ytP2PuILo29E0N6kUsOlx893AUvsFFoMb9kv9DmwqH6b91L PQifkVQJIx9j/yXILWehoNozLrczSs1gVx0OItILqP3SwOO3qL6JAFbKbiQllpVQ 65rFWnhrbZWbR8zQP+DRHpOXkZV+FK9v290qRWHMAkk/gK/P8Bagh5IBo1xX5SFA Nu/8QFCeYJLLI6YOjaBj+q3mNf1YkcwIVB4VrA4lZXq4s7vNQvp3LMixg89k5E2w Fw+IIWwG8bSL24t9gsyX9rHgqdh0qxmEbjMQwQKy8jUQBKsCmRja0cz5WQ1pAAwb fuvC9e+mKvBYd8qxHr7BizU0+EYAuzDox63UL3YkhdJ1THmWhafInC1chP8WIZQL zt78GotVdth+6IBixx+C5ctv9wuLHztVYDMsAmIUASUl5RG4j8mR7hhmwctTamKh nNtLLjbdcfppZS35SuR65WnxAg79Qsw+xXPOBUk4XvuRY6gtdKKfIayNQOA/rv7V 8sfKv2JqHEUlGXvTVIY3zhaCFv9NzKXXP/TMYhy07WWWiKZqI3A= =YCLM -----END PGP SIGNATURE----- --io6hRejmZiwGjXrd--