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 1v1J2b-006ysD-Ba for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Sep 2025 06:31:49 +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 1v1J2a-00Aerv-1Y for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Sep 2025 06:31:48 +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 1v1J2Z-00Aek3-Jc for pgsql-hackers@lists.postgresql.org; Wed, 24 Sep 2025 06:31:47 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v1J2X-00289m-1H for pgsql-hackers@lists.postgresql.org; Wed, 24 Sep 2025 06:31:46 +0000 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-46e1cc6299cso15775905e9.1 for ; Tue, 23 Sep 2025 23:31:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758695499; x=1759300299; darn=lists.postgresql.org; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:subject:cc:to:from:date :sender:message-id:from:to:cc:subject:date:message-id:reply-to; bh=thbSX4dj/ZWe7BoGYOFpS+CXkVfCC6xIRSSv0+1SL/Y=; b=jzromf4XAxxr6uh1bJDJIjt2/GjjTCU4xUwMh8Q3vy5vbeV0YPM3F0JsolhQB0CQfZ SPqBASeAjMKSL+4PKUHqfFSdHNpyjTA17Mepy234PpFxdwjRC2tYIP3M15RisCfE+qfE Tc48UG+BEDzWeEF3/Eo34GYf1zhgpWf9snKNOG6qDIVVV4/JMZ5kmXoYCYLd5e5l43bS HaMTXD+SPWhd1oTZR4a0FUSKmPkr7nbdV0kSiWYDgrU7sbv+WkNNe0DTjOW+Q2mipSVh os5jFlQMSM4yV7+1FdZhkkdx9zMZ/bsSceaTvf6IFcq5nrNpUDXEeTiIFVzKwyaJXPtv yLCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758695499; x=1759300299; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:subject:cc:to:from:date :sender:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=thbSX4dj/ZWe7BoGYOFpS+CXkVfCC6xIRSSv0+1SL/Y=; b=ASGxZ1lCJIiLPwrHsCj1iLNokz0VB+vhhWnEEM1ZaGa7aQRuw9+D1Ei2GPapPbATne Ovs/GUZydUHTiQ8zQ8RpCHfJgx2WeVd6uJ+lTNc2N4QAsdiJSpIIyPV9gAAdRIRInPxT Jdjyv9hqdibeLTtWA8h8olMpYGq8pr9NK4RKg1GV8Ghxr294Xvl2/d2qhhS5pkQLos+z 8qB99X8zZeTbIlqk6a6IB4wP6PfOE5GRU5nGN9SOjX5lRyEV0dqqHe3tWxKJPMvKoE7M 2VRQIeoVHfca+RWpSy8ylj6ojOZy+zVn7iMU+80C8zuw3A67SQhm0av3ugyqO8+ziCyd TaPw== X-Forwarded-Encrypted: i=1; AJvYcCWCJ6vgS7OHgJKWRCxsZsRXl0vx3du3T5mmaI8mnttl5m+q9MqXaZj4NMBDzgtyiQu7xW/E1rCvpfz7VXC/@lists.postgresql.org X-Gm-Message-State: AOJu0YyYYpD9jbld0KnANpQfZvlSTtPwbv2KVzOeFOEb2DPlznwRfK+M 6IkLbSyT3kOTR1xK2eQyrYMMzcEUw99LPEobqo1JmTykSmunY1IHX/0fCSVFAg== X-Gm-Gg: ASbGncuBnBh6MMKJwPnsT7vKHRZeFC3TM4rthwHEoer8qe1T/svkkiGgyeXDxq0O9rJ a24+MILMWoLiU6Q1OGJ9nKqEL3xmY1VoLMp4RPYBX8Y9KadK6nd0J3UckQeCi9XkXMn8sH3VZ5w xVhpySU5S2eGOQW8ip+CzOExqwnu7h3hSVDeJcbcMcxES3qjN0Vkp9Ga+JcGo/oKcLwR4vL7DLh FSlI1PSbS1A/PUQU/p1HFpa5EP6yofginbhmMd5E28Fydi+3qE/xa92T+0M4/y/55rVFiouVD5z dN+kvZVTPrt2PPFLIP6ome05pKL8m5Fx6yJAgoQ9m/AWOiY5BQ3oWzNqmQzaWw/xuqAq8zTAGe6 Q1uCKOsR5d4nKhtEihTv7wk/JyQJMXjml8DSx4GaKtcg61OC0xkBXtuM= X-Google-Smtp-Source: AGHT+IFf0l/XUJiDRPTRhevfO+7G/fpzmX/eqWbfXfssEO6MDZXXKEstE60N8lpWAzB08Ah6kO1SAw== X-Received: by 2002:a05:600c:4fd3:b0:459:e025:8c40 with SMTP id 5b1f17b1804b1-46e1d9a4ffcmr54475405e9.10.1758695499222; Tue, 23 Sep 2025 23:31:39 -0700 (PDT) Received: from lightning.caipicrew.dd-dns.de ([2001:a61:a7f:9701:6ac6:edd8:569:5ec9]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-46e2c0203a1sm6133395e9.9.2025.09.23.23.31.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Sep 2025 23:31:38 -0700 (PDT) Message-ID: <68d3904a.050a0220.1acb1.1936@mx.google.com> X-Google-Original-Message-ID: <20250924063137.GB9179@caipicrew.dd-dns.de;lightning.caipicrew.dd-dns.de> Sender: Michael Banck Received: from mbanck by lightning.caipicrew.dd-dns.de with local (Exim 4.92) (envelope-from ) id 1v1J2P-0000s7-TH; Wed, 24 Sep 2025 08:31:37 +0200 Date: Wed, 24 Sep 2025 08:31:37 +0200 From: Michael Banck To: Alexander Lakhin Cc: Tom Lane , Michael Paquier , pgsql-hackers@lists.postgresql.org, Thomas Munro Subject: Re: GNU/Hurd portability patches 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: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <283c3d69-ef32-4391-9ea3-68e47c9dea31@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Mon, Sep 22, 2025 at 11:30:00PM +0300, Alexander Lakhin wrote: > Maybe I was wrong and we can at least categorize these failures -- I hope > their number is finite, but my point was that it's hardly possible to use > the information, that fruitcrow gives us, to improve Postgres. Or, for that matter, to improve GNU Mach/Hurd... > 22.09.2025 10:22, Michael Banck wrote: > > There have been two (infrequent) failures in the isoloation tests as > > well, which I haven't had time to investigate further: > > > > In PG17: > > > > |not ok 98 - stats 2100 ms > > > > |diff -U3 buildroot/REL_17_STABLE/pgsql.build/src/test/isolation/expected/stats_1.out buildroot/REL_17_STABLE/pgsql.build/src/test/isolation/output_iso/results/stats.out > > |--- buildroot/REL_17_STABLE/pgsql.build/src/test/isolation/expected/stats_1.out 2025-09-15 22:06:24.000000000 +0100 > > |+++ buildroot/REL_17_STABLE/pgsql.build/src/test/isolation/output_iso/results/stats.out 2025-09-15 22:23:05.000000000 +0100 > > |@@ -1445,7 +1445,7 @@ > > | > > | name |pg_stat_get_function_calls|total_above_zero|self_above_zero > > | --------------+--------------------------+----------------+--------------- > > |-test_stat_func| 1|t |t > > |+test_stat_func| 1|f |f > > | (1 row) > > > > This one happened twice as well, and so far only on REL_17_STABLE: > > > > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=fruitcrow&dt=2025-09-15%2021%3A06%3A17 > > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=fruitcrow&dt=2025-09-13%2008%3A04%3A05 > > > > This might be due to the HPET timer not always being monotonic - there > > has been an independent report via the Debian autobuilder and a GNU Mach > > fix was committed last night, I'll check whether this can be > > reproduced/confirmed-fixed with this change: > > > > https://lists.gnu.org/archive/html/bug-hurd/2025-09/msg00020.html > > https://salsa.debian.org/hurd-team/gnumach/-/commit/06079a8d212817ee0365f318bd90b67bf56bfb06 > > I reproduced the issue locally and found that >         /* total elapsed time in this function call */ >         INSTR_TIME_SET_CURRENT(total); >         INSTR_TIME_SUBTRACT(total, fcu->start); > sometimes gives total.ticks = 0. > > I tried the test program from [2] and got on my VM: > went backwards 0 out of 10000000 times > (three times) > > 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 >  ITERATION 1 t1: 55873639081080, t2: 55873639084090, t2 - t1: 3010 (r: 4950) >  ITERATION 2 t1: 55873641019440, t2: 55873641025700, t2 - t1: 6260 (r: 4950) >  ITERATION 3 t1: 55873642794200, t2: 55873642797130, t2 - t1: 2930 (r: 4950) > ... >  ITERATION 23 t1: 55873675001590, t2: 55873675001590, t2 - t1: 0 (r: 4950) > > I don't know how to test the patch committed, but if you can, that would > be nice. Thanks for the test. I ran the stats test with the GNU Mach patch and while it seemed to help, it did error out eventually. However, your test case is much better/faster and I also see 0 deltas after a few hundred to a few thousand iterations. I'll report that on their development list, looks like they have not plugged all the holes yet.. Michael