pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #8326: pgbench tps wrong BUG
3+ messages / 3 participants
[nested] [flat]

* BUG #8326: pgbench tps wrong BUG
@ 2013-07-24 01:54  digoal@126.com
  0 siblings, 1 reply; 3+ messages in thread

From: digoal@126.com @ 2013-07-24 01:54 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      8326
Logged by:          digoal.zhou
Email address:      digoal@126.com
PostgreSQL version: Unsupported/Unknown
Operating system:   CentOS 5.8 x64
Description:        

when client thread big, the tps without connection time wrong!!!!
pg94@db-172-16-3-33-> pgbench  -M prepared -n -r -f ./test.sql -T 10 -c 800
-j 100 digoal
transaction type: Custom query
scaling factor: 1
query mode: prepared
number of clients: 800
number of threads: 100
duration: 10 s
number of transactions actually processed: 2037960
tps = 199534.267305 (including connections establishing)
tps = 675603.691013 (excluding connections establishing)
statement latencies in milliseconds:
        1.019046        select 1;


when client threads small, the wrong is little.
pg94@db-172-16-3-33-> pgbench  -M prepared -n -r -f ./test.sql -T 10 -c 800
-j 10 digoal
transaction type: Custom query
scaling factor: 1
query mode: prepared
number of clients: 800
number of threads: 10
duration: 10 s
number of transactions actually processed: 1035345
tps = 102285.117970 (including connections establishing)
tps = 115616.181725 (excluding connections establishing)
statement latencies in milliseconds:
        6.812371        select 1;



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #8326: pgbench tps wrong BUG
@ 2013-07-26 07:17  Fabien COELHO <coelho@cri.ensmp.fr>
  parent: digoal@126.com
  0 siblings, 1 reply; 3+ messages in thread

From: Fabien COELHO @ 2013-07-26 07:17 UTC (permalink / raw)
  To: digoal@126.com; +Cc: pgsql-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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #8326: pgbench tps wrong BUG
@ 2013-07-26 07:35  digoal <digoal@126.com>
  parent: Fabien COELHO <coelho@cri.ensmp.fr>
  0 siblings, 0 replies; 3+ messages in thread

From: digoal @ 2013-07-26 07:35 UTC (permalink / raw)
  To: Fabien COELHO <coelho@cri.ensmp.fr>; +Cc: pgsql-bugs

HI,
   thanks for your replay, 
   
At 2013-07-26 15:17:17,"Fabien COELHO" <coelho@cri.ensmp.fr> wrote:

>
>> 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 Server Is HP DL360. 
CPU E5504 2.0GHz
>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.
YES, I agree with you.
When testing time 100 second, the result is:
http://blog.163.com/digoal@126/blog/static/163877040201362495136271/
pg93@db-172-16-3-33-> pgbench -M prepared -n -r -f ./test.sql -c 160-j 160-T 120 digoal 
transaction type:Custom query
scaling factor:1
query mode: prepared
number of clients:160
number of threads:160
duration:120 s
number of transactions actually processed:28424102
tps=236795.526880(including connections establishing)
tps =350493.897174(excluding connections establishing)
statement latencies in milliseconds:
        0.438618        select1;
> >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.
I's a pretty job, Thank you, I'm waiting.
-------------------------------------------
Digoal.zhou

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2013-07-26 07:35 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-07-24 01:54 BUG #8326: pgbench tps wrong BUG digoal@126.com
2013-07-26 07:17 ` Fabien COELHO <coelho@cri.ensmp.fr>
2013-07-26 07:35   ` digoal <digoal@126.com>

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