Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XUYWg-0008BK-Gs for pgsql-performance@arkaria.postgresql.org; Thu, 18 Sep 2014 10:01:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XUYWf-0004zj-SH for pgsql-performance@arkaria.postgresql.org; Thu, 18 Sep 2014 10:01:21 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XUYTx-0003Wf-1R for pgsql-performance@postgresql.org; Thu, 18 Sep 2014 09:58:33 +0000 Received: from smtp-o-3.desy.de ([2001:638:700:1038::1:9c]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XUYTp-0001ho-Qf for pgsql-performance@postgresql.org; Thu, 18 Sep 2014 09:58:31 +0000 Received: from smtp-map-3.desy.de (smtp-map-3.desy.de [131.169.56.68]) by smtp-o-3.desy.de (DESY-O-3) with ESMTP id EBEB3280351 for ; Thu, 18 Sep 2014 11:58:21 +0200 (CEST) Received: from ZITSWEEP2.win.desy.de (zitsweep2.win.desy.de [131.169.97.96]) by smtp-map-3.desy.de (DESY_MAP_3) with ESMTP id CF26D1131 for ; Thu, 18 Sep 2014 11:58:21 +0200 (MEST) Received: from smtp-intra-3.desy.de (lb-40-26.desy.de) by ZITSWEEP2.win.desy.de (Clearswift SMTPRS 5.5.0) with ESMTP id for ; Thu, 18 Sep 2014 11:58:22 +0200 Received: from z-mta-3.desy.de (z-mta-3.desy.de [131.169.55.137]) by smtp-intra-3.desy.de (DESY-INTRA-3) with ESMTP id 593551137 for ; Thu, 18 Sep 2014 11:58:21 +0200 (MEST) Received: from z-mta-3.desy.de (localhost [127.0.0.1]) by z-mta-3.desy.de (Postfix) with ESMTP id 53CC6400C0 for ; Thu, 18 Sep 2014 11:58:21 +0200 (CEST) Received: from z-mta-3.desy.de (localhost [127.0.0.1]) by z-mta-3.desy.de (Postfix) with ESMTP id 45F08400C4 for ; Thu, 18 Sep 2014 11:58:21 +0200 (CEST) Received: from z-mbx-2.desy.de (z-mbx-2.desy.de [131.169.55.140]) by z-mta-3.desy.de (Postfix) with ESMTP id 40555400C0 for ; Thu, 18 Sep 2014 11:58:21 +0200 (CEST) Date: Thu, 18 Sep 2014 11:58:21 +0200 (CEST) From: "Mkrtchyan, Tigran" To: pgsql-performance@postgresql.org Message-ID: <88549888.42916.1411034301200.JavaMail.zimbra@desy.de> In-Reply-To: <45142416.42827.1411033201079.JavaMail.zimbra@desy.de> Subject: postgres 9.3 vs. 9.4 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mailer: Zimbra 8.0.7_GA_6021 (ZimbraWebClient - FF31 (Linux)/8.0.7_GA_6021) Thread-Topic: postgres 9.3 vs. 9.4 Thread-Index: s5S9FQ6lY8IOzCp+Smo2k6KbOYD5GA== X-Pg-Spam-Score: -1.6 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Hi Folk, I am trying to investigate some performance issues which we have with postgres (a different topic by itself) and tried postgres.9.4beta2, with a hope that it perform better. Turned out that 9.4 is 2x slower than 9.3.5 on the same hardware. Some technical details: Host: rhel 6.5 2.6.32-431.23.3.el6.x86_64 256 GB RAM, 40 cores, Intel(R) Xeon(R) CPU E5-2660 v2 @ 2.20GHz 2x160GB PCIe SSD DELL_P320h-MTFDGAL175SAH ( on one 9.3, on an other one 9.4 ) postgres tweaks: default_statistics_target = 100 wal_writer_delay = 10s vacuum_cost_delay = 50 synchronous_commit = off maintenance_work_mem = 2GB checkpoint_completion_target = 0.9 effective_cache_size = 94GB work_mem = 402MB wal_buffers = 16MB checkpoint_segments = 64 shared_buffers = 8GB max_connections = 100 random_page_cost = 1.5 # other goodies log_line_prefix = '%m <%d %u %r> %%' log_temp_files = 0 log_min_duration_statement = 5 in both cases databases are fresh - no data. Here is a results with pgbench. 9.3.5: # /usr/pgsql-9.3/bin/pgbench -r -j 1 -c 1 -T 60 starting vacuum...end. transaction type: TPC-B (sort of) scaling factor: 1 query mode: simple number of clients: 1 number of threads: 1 duration: 60 s number of transactions actually processed: 96361 tps = 1605.972262 (including connections establishing) tps = 1606.064501 (excluding connections establishing) statement latencies in milliseconds: 0.001391 \set nbranches 1 * :scale 0.000473 \set ntellers 10 * :scale 0.000430 \set naccounts 100000 * :scale 0.000533 \setrandom aid 1 :naccounts 0.000393 \setrandom bid 1 :nbranches 0.000468 \setrandom tid 1 :ntellers 0.000447 \setrandom delta -5000 5000 0.025161 BEGIN; 0.131317 UPDATE pgbench_accounts SET abalance = abalance + :delta WHERE aid = :aid; 0.100211 SELECT abalance FROM pgbench_accounts WHERE aid = :aid; 0.117406 UPDATE pgbench_tellers SET tbalance = tbalance + :delta WHERE tid = :tid; 0.114332 UPDATE pgbench_branches SET bbalance = bbalance + :delta WHERE bid = :bid; 0.086660 INSERT INTO pgbench_history (tid, bid, aid, delta, mtime) VALUES (:tid, :bid, :aid, :delta, CURRENT_TIMESTAMP); 0.035940 END; 9.4beta2: # /usr/pgsql-9.3/bin/pgbench -r -j 1 -c 1 -T 60 starting vacuum...end. transaction type: TPC-B (sort of) scaling factor: 1 query mode: simple number of clients: 1 number of threads: 1 duration: 60 s number of transactions actually processed: 34017 tps = 566.948384 (including connections establishing) tps = 567.008666 (excluding connections establishing) statement latencies in milliseconds: 0.001879 \set nbranches 1 * :scale 0.000526 \set ntellers 10 * :scale 0.000490 \set naccounts 100000 * :scale 0.000595 \setrandom aid 1 :naccounts 0.000421 \setrandom bid 1 :nbranches 0.000480 \setrandom tid 1 :ntellers 0.000484 \setrandom delta -5000 5000 0.055047 BEGIN; 0.172179 UPDATE pgbench_accounts SET abalance = abalance + :delta WHERE aid = :aid; 0.135392 SELECT abalance FROM pgbench_accounts WHERE aid = :aid; 0.157224 UPDATE pgbench_tellers SET tbalance = tbalance + :delta WHERE tid = :tid; 0.147969 UPDATE pgbench_branches SET bbalance = bbalance + :delta WHERE bid = :bid; 0.123001 INSERT INTO pgbench_history (tid, bid, aid, delta, mtime) VALUES (:tid, :bid, :aid, :delta, CURRENT_TIMESTAMP); 0.957854 END; any ideas? Tigran. -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance