Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XUk05-0007oP-7k for pgsql-performance@arkaria.postgresql.org; Thu, 18 Sep 2014 22:16:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XUk04-0004tW-KN for pgsql-performance@arkaria.postgresql.org; Thu, 18 Sep 2014 22:16:28 +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 1XUk02-0004oS-Om for pgsql-performance@postgresql.org; Thu, 18 Sep 2014 22:16:26 +0000 Received: from mail.catalyst.net.nz ([2404:130:0:10::40:0]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XUjzw-00070H-SY for pgsql-performance@postgresql.org; Thu, 18 Sep 2014 22:16:22 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.catalyst.net.nz (Postfix) with ESMTP id 6D99F3268E; Fri, 19 Sep 2014 10:16:16 +1200 (NZST) X-Virus-Scanned: Debian amavisd-new at catalyst.net.nz Received: from mail.catalyst.net.nz ([127.0.0.1]) by localhost (bertrand.catalyst.net.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rko61CGt1sj0; Fri, 19 Sep 2014 10:16:14 +1200 (NZST) Received: from [192.168.1.64] (122-62-5-20.jetstream.xtra.co.nz [122.62.5.20]) (Authenticated sender: mark.kirkwood) by mail.catalyst.net.nz (Postfix) with ESMTPSA id 67556325F2; Fri, 19 Sep 2014 10:16:13 +1200 (NZST) Message-ID: <541B59AD.9020109@catalyst.net.nz> Date: Fri, 19 Sep 2014 10:16:13 +1200 From: Mark Kirkwood User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: "Mkrtchyan, Tigran" CC: Merlin Moncure , postgres performance list Subject: Re: postgres 9.3 vs. 9.4 References: <45142416.42827.1411033201079.JavaMail.zimbra@desy.de> <88549888.42916.1411034301200.JavaMail.zimbra@desy.de> <541B4704.9090305@catalyst.net.nz> <609416895.45709.1411074654752.JavaMail.zimbra@desy.de> In-Reply-To: <609416895.45709.1411074654752.JavaMail.zimbra@desy.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.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 On 19/09/14 09:10, Mkrtchyan, Tigran wrote: > > > ----- Original Message ----- >> From: "Mark Kirkwood" >> To: "Merlin Moncure" , "Tigran Mkrtchyan" >> Cc: "postgres performance list" >> Sent: Thursday, September 18, 2014 10:56:36 PM >> Subject: Re: [PERFORM] postgres 9.3 vs. 9.4 >> >> On 19/09/14 08:32, Merlin Moncure wrote: >>> 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? >>> >> >> Yes, does look suspicious. It *could* be that the 9.4 case is getting >> unlucky and checkpointing just before the end of the 60s run, and 9.3 >> isn't. > > 10 minutes run had the same results. > > Is there some kind of statistics which can tell there time is spend? > Or the only way is to run on solaris with dtrace? For me it's more important > to find why I get only 1500tps with 9.3. The test with 9.4 was just a hope for > a magic code change that will give me a better performance. > > Interesting. With respect to dtrace, you can use systemtap on Linux to achieve similar things. However before getting too carried away with that - we already *know* that 9.4 is spending longer in END (i.e commit) than 9.3 is. I'd recommend you see what wal_sync_method is set to on both systems. If it is the same, then my suspicion is that one of the SSD's needs to be trimmed [1]. You can do this by running: $ fstrim /mountpoint Also - are you using the same filesystem and mount options on each SSD? Cheers Mark [1] if fact, for the paranoid - I usually secure erase any SSD before performance testing, and then check the SMART counters too... -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance