From: Fabien COELHO <coelho@cri.ensmp.fr>
To: digoal@126.com
Cc: PostgreSQL Bugs List <pgsql-bugs@postgresql.org>
Subject: Re: BUG #8326: pgbench tps wrong BUG
Date: Fri, 26 Jul 2013 09:17:17 +0200 (CEST)
Message-ID: <alpine.DEB.2.02.1307260857150.4397@localhost6.localdomain6> (raw)
In-Reply-To: <E1V1oHi-0003uO-8o@wrigleys.postgresql.org>
References: <E1V1oHi-0003uO-8o@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
> when client thread big, the tps without connection time wrong!!!!
> number of threads: 100
> duration: 10 s
My 0.02 €:
I cannot test that on my laptop! What kind of server is this?
The thread start time is currently taken before thread creation. The
overhead of creating 100 threads compared to 10 seconds of run is quite
significant and may impact the result. The second issue is that 800
connections and as many server processes must be created, and the time for
that must be quite significant as well against the 10 second run.
So I would mostly classify that as a feature rather than a bug, because
the run is so short.
BTW, I'm planning to submit an enhancement patch to pgbench to improve
measurements, that will include moving the start time after the thread is
started, and possibly help getting more consistent figures.
--
Fabien.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: coelho@cri.ensmp.fr, digoal@126.com
Subject: Re: BUG #8326: pgbench tps wrong BUG
In-Reply-To: <alpine.DEB.2.02.1307260857150.4397@localhost6.localdomain6>
References: <E1V1oHi-0003uO-8o@wrigleys.postgresql.org> <alpine.DEB.2.02.1307260857150.4397@localhost6.localdomain6>
* 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