From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: andres@anarazel.de
Cc: pgsql-hackers@postgresql.org
Subject: Re: pgbench: option delaying queries till connections establishment?
Date: Sat, 29 Feb 2020 15:39:06 +0100 (CET)
Message-ID: <alpine.DEB.2.21.2002291531360.25187@pseudo> (raw)
In-Reply-To: <20200228.150039.1814962139504449866.horikyota.ntt@gmail.com>
References: <20200227180100.zyvjwzcpiokfsqm2@alap3.anarazel.de>
<20200227185129.hikscyenomnlrord@alap3.anarazel.de>
<20200228.150039.1814962139504449866.horikyota.ntt@gmail.com>
Hello Kyotaro-san,
>> I think this also shows that "including/excluding connections
>> establishing" as well as some of the other stats reported pretty
>> bogus. In the 'before' case a substantial numer of the connections had
>> not yet been established until the end of the test run!
>
> I see it useful. In most cases we don't care connection time of
> pgbench. Especially in the mentioned case the result is just bogus. I
> think the reason for "including/excluding connection establishing" is
> not that people wants to see how long connection took to establish but
> that how long the substantial work took. If each client did run with
> continuously re-establishing new connections the connection time would
> be useful, but actually all the connections are established at once at
> the beginning.
>
> So FWIW I prefer that the barrier is applied by default
Yep.
> (that is, it can be disabled)
On reflection, I'm not sure I see a use case for not running the barrier
if it is available.
> and the progress time starts at the time all clients has been
> established.
Yep, the start time should be set after the connection barrier, and
possibly before a start barrier to ensure that no transaction has started
before the start time: although performance measures are expected to be
slightly false because of how they are measured (measuring takes time),
from a benchmarking perspective the displayed result should be <= the
actual performance.
Now, again, if long benchmarks are run, which for a db should more or less
always be the case, this should not matter much.
>> starting vacuum...end.
> + time to established 5000 connections: 1323ms
Yep, maybe showing the initial connection time separately.
--
Fabien.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: coelho@cri.ensmp.fr, horikyota.ntt@gmail.com, andres@anarazel.de
Subject: Re: pgbench: option delaying queries till connections establishment?
In-Reply-To: <alpine.DEB.2.21.2002291531360.25187@pseudo>
References: <20200227180100.zyvjwzcpiokfsqm2@alap3.anarazel.de> <20200227185129.hikscyenomnlrord@alap3.anarazel.de> <20200228.150039.1814962139504449866.horikyota.ntt@gmail.com> <alpine.DEB.2.21.2002291531360.25187@pseudo>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox