473,405 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Benchmark testing with pgbench in postgres BDR set up

Hi ,

I am getting constant TPS as 500 while using pgbench with different TPS as input .
How to increase the TPS in BDR set up, please suggest .
Expand|Select|Wrap|Line Numbers
  1.        bdr_version used :  1.0.3-2017-11-21-15283ba
  2.  
  3. ******************** Sample Output and pgbench command input **********************************************************
  4. Scenario 1 :  Shared_Buffer = 1024 MB and throttling TPS  as 2000
  5.  
  6. command used :  pgbench -h <hostname> -p 5432 -U postgres -d <dbname> -c 50 -j 50  -r -R 2000
  7.  
  8. O/P : 
  9. transaction type: TPC-B (sort of)
  10. scaling factor: 1
  11. query mode: simple
  12. number of clients: 50
  13. number of threads: 50
  14. duration: 2400 s
  15. number of transactions actually processed: 1200964
  16. latency average: 894071.370 ms
  17. latency stddev: -nan ms
  18. rate limit schedule lag: avg 893971.489 (max 1819008.190) ms
  19. tps = 500.382936 (including connections establishing)
  20. tps = 500.385107 (excluding connections establishing)
  21. statement latencies in milliseconds:
  22.         0.109225        \set nbranches 1 * :scale
  23.         0.100045        \set ntellers 10 * :scale
  24.         0.085917        \set naccounts 100000 * :scale
  25.         0.064758        \setrandom aid 1 :naccounts
  26.         0.057230        \setrandom bid 1 :nbranches
  27.         0.052089        \setrandom tid 1 :ntellers
  28.         0.049827        \setrandom delta -5000 5000
  29.         0.471368        BEGIN;
  30.         0.678317        UPDATE pgbench_accounts SET abalance = abalance + :delta WHERE aid = :aid;
  31.         0.599331        SELECT abalance FROM pgbench_accounts WHERE aid = :aid;
  32.         80.328257       UPDATE pgbench_tellers SET tbalance = tbalance + :delta WHERE tid = :tid;
  33.         15.537372       UPDATE pgbench_branches SET bbalance = bbalance + :delta WHERE bid = :bid;
  34.         0.698180        INSERT INTO pgbench_history (tid, bid, aid, delta, mtime) VALUES (:tid, :bid, :aid, :delta, CURRENT_TIMESTAMP);
  35.         0.995450        END;
  36. Thu Aug 16 09:52:30 UTC 2018
  37. __________________________________________________________________________________________________________________________
  38.  
Expand|Select|Wrap|Line Numbers
  1. Scenario 2: Shared_Buffer = 1024 MB and throttling TPS  as 6000
  2. Command Used  : pgbench -h <hostname> -p 5432 -U postgres -d <dbname> -c 50 -j 50  -r -R 6000
  3.  
  4. O/P :
  5. transaction type: TPC-B (sort of)
  6. scaling factor: 1
  7. query mode: simple
  8. number of clients: 50
  9. number of threads: 50
  10. duration: 2400 s
  11. number of transactions actually processed: 1184746
  12. latency average: 1096729.554 ms
  13. latency stddev: -nan ms
  14. rate limit schedule lag: avg 1096628.305 (max 2208483.098) ms
  15. tps = 493.625936 (including connections establishing)
  16. tps = 493.629106 (excluding connections establishing)
  17. statement latencies in milliseconds:
  18.         0.108491        \set nbranches 1 * :scale
  19.         0.098740        \set ntellers 10 * :scale
  20.         0.084497        \set naccounts 100000 * :scale
  21.         0.064168        \setrandom aid 1 :naccounts
  22.         0.056658        \setrandom bid 1 :nbranches
  23.         0.051678        \setrandom tid 1 :ntellers
  24.         0.049427        \setrandom delta -5000 5000
  25.         0.480755        BEGIN;
  26.         0.696514        UPDATE pgbench_accounts SET abalance = abalance + :delta WHERE aid = :aid;
  27.         0.607114        SELECT abalance FROM pgbench_accounts WHERE aid = :aid;
  28.         81.404448       UPDATE pgbench_tellers SET tbalance = tbalance + :delta WHERE tid = :tid;
  29.         15.775295       UPDATE pgbench_branches SET bbalance = bbalance + :delta WHERE bid = :bid;
  30.         0.708403        INSERT INTO pgbench_history (tid, bid, aid, delta, mtime) VALUES (:tid, :bid, :aid, :delta, CURRENT_TIMESTAMP);
  31.         1.009272        END;
  32. Thu Aug 16 11:33:17 UTC 2018
Aug 22 '18 #1
1 2525
zmbd
5,501 Expert Mod 4TB
soumitra1234
What have you already tried?
People here do not have your setup so really need to know what you have already tried so that they have some idea about your skill set and your work environment.
Aug 22 '18 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Bart Nessux | last post by:
Would adding .0 to each of the numbers below turn this into a floating point test? Seems too easy. def cpu_test(): import time start = time.time() x = 0 # 0.0 while x < 9999999: #...
4
by: Thierry Missimilly | last post by:
Hi, This is the wrong mailing list but I don't sent it to pgsql-bugs with success. ---------------------------(end of broadcast)--------------------------- TIP 7: don't forget to...
11
by: Durai | last post by:
Hi All, I tested "concurrent testing" in MySQL. It works fine. But I couldn't do in PostgreSQL 7.3.4 on HPUX IPF. I got deadlock problem. I used the PHP script to update table( one script...
0
by: zerobearing2 | last post by:
Hi all- I'm migrating to postgres from the MS SQL Server land, as I can see a great potential with postgres, I was wondering if anyone has experimented or started a project with XML inside user...
3
by: Gaetano Mendola | last post by:
I found this article: http://www.serverwatch.com/news/article.php/10824_1126981_Ext that is clear out dated, it's anyway a good comparison with mysql. Do you know if someone did the TPC-C...
0
by: Pallav Kalva | last post by:
Hi Everybody, I am having problems while installing pgbench program. I followed the below procedure to install according to the docs: (1) Configure and build the standard Postgres...
6
by: z | last post by:
How can validation testing on DBMSs such as DB2 and Oracle be performed? Is there a quick commonly used publicly available DBMS test that can be used? Could TPC-C be used? If so, where can...
0
by: Jon Harrop | last post by:
A JVM developer called John Rose from Sun Microsystems recently claimed on a mailing list that Sun's JVM offers C-like performance whereas .NET only offers performance comparable to old JVM...
37
by: Jack | last post by:
I know one benchmark doesn't mean much but it's still disappointing to see Python as one of the slowest languages in the test: ...
0
by: Garima Sinha | last post by:
Do we have any available testing tool and benchmarking tool for postgreSQL database other than "pgbench" and "HammerDB" which don't require any license fee. Please reply asap.
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.