pgsql: pgbench: Synchronize client threads.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pgbench: Synchronize client threads.
Date: 2021-03-10 04:52:01
Message-ID: E1lJqpF-00064k-Cx@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pgbench: Synchronize client threads.

Wait until all pgbench threads are connected before benchmarking begins.
This fixes a problem where some connections could take a very long time
to be established because of lock contention from earlier connections,
making results unstable and bogus with high connection counts.

Author: Andres Freund <andres(at)anarazel(dot)de>
Author: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Reviewed-by: Marina Polyakova <m(dot)polyakova(at)postgrespro(dot)ru>
Reviewed-by: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
Reviewed-by: Hayato Kuroda <kuroda(dot)hayato(at)fujitsu(dot)com>
Reviewed-by: David Rowley <dgrowleyml(at)gmail(dot)com>
Discussion: https://postgr.es/m/20200227180100.zyvjwzcpiokfsqm2%40alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/aeb57af8e64000cc4288a7b8b8d7cf6040eae900

Modified Files
--------------
src/bin/pgbench/pgbench.c | 42 +++++++++++++++++++++++++++++++++++++++++-
1 file changed, 41 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2021-03-10 05:55:05 pgsql: Move tablespace path re-creation from the makefiles to pg_regres
Previous Message Amit Kapila 2021-03-10 04:43:14 pgsql: Fix valgrind issue in commit 05c8482f7f.