Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lvxu1-0005HL-EH for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Jun 2021 08:06:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lvxu0-0007lH-Bv for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Jun 2021 08:06:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lvxu0-0007l9-45 for pgsql-hackers@lists.postgresql.org; Wed, 23 Jun 2021 08:06:28 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lvxty-0004ht-3W for pgsql-hackers@postgresql.org; Wed, 23 Jun 2021 08:06:27 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 142325C00DF; Wed, 23 Jun 2021 04:06:25 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 23 Jun 2021 04:06:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=+tmLIV/69/ad9UmfFDSijRLjupp a+5G8UEX3LSCk1lQ=; b=gk2wWUcJadzrUuPxsSaqGHPWdnbCwscRaPe/kKo2jih +Y8Kpb7mxO9KXzf3YoHvovMbS3uDYtnwLonCtW/tNBo6OnsJg83T4cMO9/s6lThK AuQblVEq+YEJsqlB/Wy5xLi/B8Jc5hPYESWuBFybtoX03lcHqlcqtKsPlNpC7Jka bl2QCU32mLgiI3wwLUua3+EDNdxspA6bfHkqN94Kt3oxEr+QWBAC4krdE9c6hLta XnXxi9E+gURbCG1y8DFLyqI+DugSR1v0xoEVqja68lDDyDno747ewPIn/Lm56FCZ t/e4p9gSa9OcmEF/YHWc+ETt/UoUgLChNZpDsBNCCqA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=+tmLIV /69/ad9UmfFDSijRLjuppa+5G8UEX3LSCk1lQ=; b=suWJCP2fXVeVXBmmwsg5Q2 emQdtg8G6xM5Wvmteoz4v6qr7aD93i8g09e+BjYDeMws6N+qeALnjDUdeQTAqqVw lnGTHMA4dnSoLks5jVf9+Pwrkna5pdpcUT2FcA3J0UBYRbD1lewLnV/62cVWa1L8 5ku88ZYzvWRpzPyHIjDkgVdIQtJbeKjroLc2sAf7/+tMEcNHrxfkHGyrrqp98+TF VnMs7DdFtKbWOvQ13QeU0Pc4a5lFzFrn4G4KgN68siInP9962OzQbm3RNDlLGSgt LPNMWi9f9Gyhmh6s212vPiMtu/POrC3aQC2mcUITHrPnougfEW8NxxxJ9n5XH6NQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeegfedgtdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeeh heeiveeuieegleetgeeljeelieeuieehgeevhfenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 23 Jun 2021 04:06:22 -0400 (EDT) Date: Wed, 23 Jun 2021 17:06:18 +0900 From: Michael Paquier To: Fabien COELHO Cc: Andrew Dunstan , Thomas Munro , Alvaro Herrera , Gregory Smith , PostgreSQL-development , david.christensen@crunchydata.com Subject: Re: pgbench logging broken by time logic changes Message-ID: References: <202106200318.gxnon4vrc7t6@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="suoyekuoJTUhbbnG" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --suoyekuoJTUhbbnG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 23, 2021 at 08:26:32AM +0200, Fabien COELHO wrote: >> Could we make that shorter at 1s? That will shorten the duration of >> the test run. It is easy to miss that this test is for >> --aggregate-interval (aka the logAgg() path) without a comment. >=20 > It is for -T, -P and --aggregate-interval. The units of all these is > seconds, the minimum is 1, I put 2 so that It is pretty sure to get some > output. We could try 1, but I'm less confident that an output is ensured = in > all cases on a very slow host which may decide to shorten the run before > having shown a progress for instance. Could it be possible to document the intention of the test and its coverage then? With the current patch, one has to guess what's the intention behind this case. >> +# $nthreads threads, 2 seconds, but due to timing imprecision we might = get >> +# only 1 or as many as 3 progress reports per thread. >> +check_pgbench_logs($bdir, '001_pgbench_log_1', $nthreads, 1, 3, >> + qr{^\d{10,} \d{1,2} \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+$}); >> + >> Now this one is good and actually stable thanks to the fact that we'd >> get at least the final logs, and the main complain we got to discuss >> about on this thread was the format of the logs. >=20 > Yep, this test would have probably detected the epoch issue reported by > Greg. (Sorry I missed the use of throttle_delay that would generate 10 fields in the log file) Hm.. Could it be possible to tighten a bit the regex used here then? I was playing with it and it is not really picky in terms of patterns=20 allowed or rejected. The follow-up checks for check_pgbench_logs() could be a bit more restrictive as well, but my regex-fu is bad. >> I would say to give up on the first test, and keep the second. >=20 > You mean remove the time check and keep the log check. I'd like to keep a > time check, or at least have it in comment so that I can enable it simply. I'd rather avoid tests that tend to fail on slow machines. There is a flotilla in the buildfarm. -- Michael --suoyekuoJTUhbbnG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmDS63oACgkQnvQgOdby QH0rRBAAnlrNwX4yjRP1fUNg6vvIEnxOaKX0y7e46ytWeGAD2NqrvQ9MSZoqj95w KGrph8DX3/LMVh6/qkJBH6B/dWbsYxpRPtfl786ZDyRwieMXYFHaF9iaRGthP0ik EeLO0EgWROYrMBsa59RDHIlNBwcBpDmG75bKKSyj8RrkZrVmU+/b6RrJpd07XbaX l1ajMlVfHiuyiusYGCrShOuXdLgoyKZvBrZbAt1SYerMFhSesSSLjWezDuMwt2VO UG+07I/MBI6LmY0sq7St5y5kgpb5AsELjUPJoyp9kHPJnfqv1b3KAup/p+JbNyc9 oQ4rghot89tMksO5HTc5jgmUGtGdkDxtOcpGKJiQIL338ifa2xTioghSIh1yIGeN Z/N/6QTsGPidetjvxuIohjXvlZTid2y2C2w4osvcI0bif5aDIvfXZ4WuWrzMQTtR BerKHFrSV7FIdE0cfzTzUu+ONFtSsbGF7OOUtJptUYdmVSXJc/SqFKj1YVoY0vdv Taj4R/ETfGkkMPfoLlrhUAx6gzvbvYnHr2KAJWIMhc9OLOdEqjsmnAlRWTqoCmRe ECONIYUePmHSRiSKWElops3x6CthDTp/d1NhprSO8Txvgrxs/M1iK8EUY4z6BKuO MzlP5islKtmleNvSqdflZKuav6sGNOrzXR6r/NMZdVfne6Flwuo= =KtBO -----END PGP SIGNATURE----- --suoyekuoJTUhbbnG--