Skip to content

Commit 0f574a7

Browse files
committed
Allow up to 3 "-P 1" reports per thread in pgbench run of 2 seconds.
There seems to be some considerable imprecision in the timing of -P progress reports. Nominally each thread ought to produce 2 reports in this test, but about 10% of the time we only get one, and 1% of the time we get three, as per buildfarm results so far. Pending further investigation, treat the last case as a "pass". (I, tgl, am suspicious that this still might not be lax enough, now that it's obvious that the behavior is load-dependent; but there's not yet buildfarm evidence to confirm that suspicion.) Fabien Coelho Discussion: https://postgr.es/m/26654.1505232433@sss.pgh.pa.us
1 parent 5d3cad5 commit 0f574a7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bin/pgbench/t/001_pgbench_with_server.pl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,9 @@ sub check_pgbench_logs
462462
[ qr{vacuum}, qr{progress: 1\b} ],
463463
'pgbench progress');
464464

465-
# $nthreads threads, 2 seconds, sometimes only one aggregated line is written
466-
check_pgbench_logs('001_pgbench_log_1', $nthreads, 1, 2,
465+
# $nthreads threads, 2 seconds, but due to timing imprecision we might get
466+
# only 1 or as many as 3 progress reports per thread.
467+
check_pgbench_logs('001_pgbench_log_1', $nthreads, 1, 3,
467468
qr{^\d+ \d{1,2} \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+ \d+$});
468469

469470
# with sampling rate

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy