pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feed From: soumitra bhandary <soumitra.bhandary@hotmail.com>
To: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: Not able to increase TPS in Postgres BDR set up using pgbench utility
Date: Mon, 3 Sep 2018 06:17:37 +0000
Message-ID: <MA1PR0101MB168700B1143ECBA1F473E9FCE00C0@MA1PR0101MB1687.INDPRD01.PROD.OUTLOOK.COM> (raw )
In-Reply-To: <MA1PR0101MB1687A68EA1A006D5731544EEE0370@MA1PR0101MB1687.INDPRD01.PROD.OUTLOOK.COM >
References: <MA1PR0101MB1687A68EA1A006D5731544EEE0370@MA1PR0101MB1687.INDPRD01.PROD.OUTLOOK.COM >
Hi ,
Anyone have any idea about the below observation . I am awaiting response .
Thanks ,
Soumitra
________________________________
From: soumitra bhandary <soumitra.bhandary@hotmail.com>
Sent: Thursday, August 23, 2018 11:13 AM
To: pgsql-admin@lists.postgresql.org
Subject: Not able to increase TPS in Postgres BDR set up using pgbench utility
Hi ,
Not able to increase TPS in Postgres BDR set up using pgbench utility:
I am getting constant TPS as 500 while using pgbench with different TPS as input .How to increase the TPS in Postgres BDR set up, please suggest .
bdr_version used : 1.0.3-2017-11-21-15283ba
Postgres version : 9.4
Scenario 1:
Shared_Buffer = 1024 MB and throttling TPS as 2000
command used:
pgbench -h <hostname> -p 5432 -U postgres -d <dbname> -c 50 -j 50 -r -R 2000
O/P :
transaction type: TPC-B (sort of)
scaling factor: 1
query mode: simple
number of clients: 50
number of threads: 50
duration: 2400 s
number of transactions actually processed: 1200964
latency average: 894071.370 ms
latency stddev: -nan ms
rate limit schedule lag: avg 893971.489 (max 1819008.190) ms
tps = 500.382936 (including connections establishing)
tps = 500.385107 (excluding connections establishing)
statement latencies in milliseconds:
0.109225 \set nbranches 1 * :scale
0.100045 \set ntellers 10 * :scale
0.085917 \set naccounts 100000 * :scale
0.064758 \setrandom aid 1 :naccounts
0.057230 \setrandom bid 1 :nbranches
0.052089 \setrandom tid 1 :ntellers
0.049827 \setrandom delta -5000 5000
0.471368 BEGIN;
0.678317 UPDATE pgbench_accounts SET abalance = abalance + :delta WHERE aid = :aid;
0.599331 SELECT abalance FROM pgbench_accounts WHERE aid = :aid;
80.328257 UPDATE pgbench_tellers SET tbalance = tbalance + :delta WHERE tid = :tid;
15.537372 UPDATE pgbench_branches SET bbalance = bbalance + :delta WHERE bid = :bid;
0.698180 INSERT INTO pgbench_history (tid, bid, aid, delta, mtime) VALUES (:tid, :bid, :aid, :delta, CURRENT_TIMESTAMP);
0.995450 END;
Thu Aug 16 09:52:30 UTC 2018
Scenario 2:
Shared_Buffer = 1024 MB and throttling TPS as 6000
Command Used:
pgbench -h <hostname> -p 5432 -U postgres -d <dbname> -c 50 -j 50 -r -R 6000
O/P:
transaction type: TPC-B (sort of)
scaling factor: 1
query mode: simple
number of clients: 50
number of threads: 50
duration: 2400 s
number of transactions actually processed: 1184746
latency average: 1096729.554 ms
latency stddev: -nan ms
rate limit schedule lag: avg 1096628.305 (max 2208483.098) ms
tps = 493.625936 (including connections establishing)
tps = 493.629106 (excluding connections establishing)
statement latencies in milliseconds:
0.108491 \set nbranches 1 * :scale
0.098740 \set ntellers 10 * :scale
0.084497 \set naccounts 100000 * :scale
0.064168 \setrandom aid 1 :naccounts
0.056658 \setrandom bid 1 :nbranches
0.051678 \setrandom tid 1 :ntellers
0.049427 \setrandom delta -5000 5000
0.480755 BEGIN;
0.696514 UPDATE pgbench_accounts SET abalance = abalance + :delta WHERE aid = :aid;
0.607114 SELECT abalance FROM pgbench_accounts WHERE aid = :aid;
81.404448 UPDATE pgbench_tellers SET tbalance = tbalance + :delta WHERE tid = :tid;
15.775295 UPDATE pgbench_branches SET bbalance = bbalance + :delta WHERE bid = :bid;
0.708403 INSERT INTO pgbench_history (tid, bid, aid, delta, mtime) VALUES (:tid, :bid, :aid, :delta, CURRENT_TIMESTAMP);
1.009272 END;
Thu Aug 16 11:33:17 UTC 2018
view thread (2+ messages)
Message-ID: <MA1PR0101MB168700B1143ECBA1F473E9FCE00C0@MA1PR0101MB1687.INDPRD01.PROD.OUTLOOK.COM>
Permalink: ../MA1PR0101MB168700B1143ECBA1F473E9FCE00C0@MA1PR0101MB1687.INDPRD01.PROD.OUTLOOK.COM/
Also on: postgresql.org/message-id/MA1PR0101MB168700B1143ECBA1F473E9FCE00C0@MA1PR0101MB1687.INDPRD01.PROD.OUTLOOK.COM
copy link · copy postgr.es
reply 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-admin@postgresql.org
Cc: soumitra.bhandary@hotmail.com
Subject: Re: Not able to increase TPS in Postgres BDR set up using pgbench utility
In-Reply-To: <MA1PR0101MB168700B1143ECBA1F473E9FCE00C0@MA1PR0101MB1687.INDPRD01.PROD.OUTLOOK.COM>
References: <MA1PR0101MB1687A68EA1A006D5731544EEE0370@MA1PR0101MB1687.INDPRD01.PROD.OUTLOOK.COM> <MA1PR0101MB168700B1143ECBA1F473E9FCE00C0@MA1PR0101MB1687.INDPRD01.PROD.OUTLOOK.COM>
* 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