Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XUipm-0004kq-CP for pgsql-performance@arkaria.postgresql.org; Thu, 18 Sep 2014 21:01:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XUipl-0007VV-Pc for pgsql-performance@arkaria.postgresql.org; Thu, 18 Sep 2014 21:01:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XUipj-0007Rp-Vt for pgsql-performance@postgresql.org; Thu, 18 Sep 2014 21:01:44 +0000 Received: from smtp-o-3.desy.de ([2001:638:700:1038::1:9c]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XUipc-0007Cn-KG for pgsql-performance@postgresql.org; Thu, 18 Sep 2014 21:01:42 +0000 Received: from smtp-map-1.desy.de (smtp-map-1.desy.de [131.169.56.66]) by smtp-o-3.desy.de (DESY-O-3) with ESMTP id 8E09B2801DE for ; Thu, 18 Sep 2014 23:01:35 +0200 (CEST) Received: from ZITSWEEP4.win.desy.de (zitsweep4.win.desy.de [131.169.97.98]) by smtp-map-1.desy.de (DESY_MAP_1) with ESMTP id 7D83813E87 for ; Thu, 18 Sep 2014 23:01:35 +0200 (MEST) Received: from smtp-intra-1.desy.de (lb-40-26.desy.de) by ZITSWEEP4.win.desy.de (Clearswift SMTPRS 5.5.0) with ESMTP id ; Thu, 18 Sep 2014 23:01:35 +0200 Received: from z-mta-2.desy.de (z-mta-2.desy.de [131.169.55.136]) by smtp-intra-1.desy.de (DESY-INTRA-1) with ESMTP id 13B5F3E907; Thu, 18 Sep 2014 23:01:35 +0200 (MEST) Received: from z-mta-2.desy.de (localhost [127.0.0.1]) by z-mta-2.desy.de (Postfix) with ESMTP id 0B5632600AE; Thu, 18 Sep 2014 23:01:35 +0200 (CEST) Received: from z-mta-2.desy.de (localhost [127.0.0.1]) by z-mta-2.desy.de (Postfix) with ESMTP id F21272600B8; Thu, 18 Sep 2014 23:01:34 +0200 (CEST) Received: from z-mbx-2.desy.de (z-mbx-2.desy.de [131.169.55.140]) by z-mta-2.desy.de (Postfix) with ESMTP id EE4222600AE; Thu, 18 Sep 2014 23:01:34 +0200 (CEST) Date: Thu, 18 Sep 2014 23:01:34 +0200 (CEST) From: "Mkrtchyan, Tigran" To: Merlin Moncure Cc: postgres performance list Message-ID: <234230249.45693.1411074094865.JavaMail.zimbra@desy.de> In-Reply-To: References: <45142416.42827.1411033201079.JavaMail.zimbra@desy.de> <88549888.42916.1411034301200.JavaMail.zimbra@desy.de> Subject: Re: 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 - FF32 (Linux)/8.0.7_GA_6021) Thread-Topic: postgres 9.3 vs. 9.4 Thread-Index: fS6O35yMas1YnoZNOWObNYlF2qhbyg== 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 ----- Original Message ----- > From: "Merlin Moncure" > To: "Tigran Mkrtchyan" > Cc: "postgres performance list" > Sent: Thursday, September 18, 2014 10:32:20 PM > Subject: Re: [PERFORM] postgres 9.3 vs. 9.4 > > On Thu, Sep 18, 2014 at 4:58 AM, Mkrtchyan, Tigran > wrote: > > > > 9.3.5: > > 0.035940 END; > > > > > > 9.4beta2: > > 0.957854 END; > > > time being spent on 'END' is definitely suggesting i/o related issues. > This is making me very skeptical that postgres is the source of the > problem. I also thing synchronous_commit is not set properly on the > new instance (or possibly there is a bug or some such). Can you > verify via: > > select * from pg_settings where name = 'synchronous_commit'; > > on both servers? here you are: 9.4beta2 postgres=# select version(); version ----------------------------------------------------------------------------------------------------------------- PostgreSQL 9.4beta2 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4), 64-bit (1 row) postgres=# select * from pg_settings where name = 'synchronous_commit'; name | setting | unit | category | short_desc | extra_desc | context | vartype | source | min_val | max_val | enumvals | boot_val | reset_val | sourcefile | sourceline --------------------+---------+------+----------------------------+-------------------------------------------------------+------------+---------+---------+------- -------------+---------+---------+-----------------------------+----------+-----------+-----------------------------------------+------------ synchronous_commit | off | | Write-Ahead Log / Settings | Sets the current transaction's synchronization level. | | user | enum | config uration file | | | {local,remote_write,on,off} | on | off | /var/lib/pgsql/9.4/data/postgresql.conf | 622 (1 row) 9.3.5 postgres=# select version(); version -------------------------------------------------------------------------------------------------------------- PostgreSQL 9.3.5 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4), 64-bit (1 row) postgres=# select * from pg_settings where name = 'synchronous_commit'; name | setting | unit | category | short_desc | extra_desc | context | vartype | source | min_val | max_val | enumvals | boot_val | reset_val | sourcefile | sourceline --------------------+---------+------+----------------------------+-------------------------------------------------------+------------+---------+---------+------- -------------+---------+---------+-----------------------------+----------+-----------+-----------------------------------------+------------ synchronous_commit | off | | Write-Ahead Log / Settings | Sets the current transaction's synchronization level. | | user | enum | config uration file | | | {local,remote_write,on,off} | on | off | /var/lib/pgsql/9.3/data/postgresql.conf | 166 (1 row) > > What is iowait? For pci-e SSD, these drives don't seem very fast... iostat, top and pg_top never show iowait greater than 0.7% Tigran. > > merlin > -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance