Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XX0qb-00021T-0M for pgsql-performance@arkaria.postgresql.org; Thu, 25 Sep 2014 04:40:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XX0qY-0002eU-9p for pgsql-performance@arkaria.postgresql.org; Thu, 25 Sep 2014 04:40:02 +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 1XX0qW-0002eJ-6p for pgsql-performance@postgresql.org; Thu, 25 Sep 2014 04:40:00 +0000 Received: from mail.catalyst.net.nz ([2404:130:0:10::40:0]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XX0qJ-0006Gc-Gq for pgsql-performance@postgresql.org; Thu, 25 Sep 2014 04:39:55 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.catalyst.net.nz (Postfix) with ESMTP id B0D7932E84; Thu, 25 Sep 2014 16:39:41 +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 N3iJj4KYhQZn; Thu, 25 Sep 2014 16:39:40 +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 9396932DC9; Thu, 25 Sep 2014 16:39:40 +1200 (NZST) Message-ID: <54239C8C.6010902@catalyst.net.nz> Date: Thu, 25 Sep 2014 16:39:40 +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> <212134052.46894.1411111441514.JavaMail.zimbra@desy.de> <541CC338.5090700@catalyst.net.nz> <1234976322.60875.1411477085811.JavaMail.zimbra@desy.de> <1160757821.126570.1411550628851.JavaMail.zimbra@desy.de> <5422971C.3090501@catalyst.net.nz> <327866330.127797.1411563803777.JavaMail.zimbra@desy.de> In-Reply-To: <327866330.127797.1411563803777.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 25/09/14 01:03, Mkrtchyan, Tigran wrote: > > With pg_test_timing I can see, that overhead is 48 nsec on my server and 32 nsec on the laptop. > what makes this difference and have it any influence on the overall performance? > Hmm - 22 nsec for my workstation, so while it could be a factor, your laptop and my workstation performed the pgbench about the same, so I'd look elsewhere - in particlular sync IO performance: $ cd $ pg_test_fsync 5 seconds per test O_DIRECT supported on this platform for open_datasync and open_sync. Compare file sync methods using one 8kB write: (in wal_sync_method preference order, except fdatasync is Linux's default) open_datasync 140.231 ops/sec 7131 usecs/op fdatasync 138.159 ops/sec 7238 usecs/op fsync 137.680 ops/sec 7263 usecs/op fsync_writethrough n/a open_sync 137.202 ops/sec 7289 usecs/op Compare file sync methods using two 8kB writes: (in wal_sync_method preference order, except fdatasync is Linux's default) open_datasync 68.832 ops/sec 14528 usecs/op fdatasync 135.994 ops/sec 7353 usecs/op fsync 137.454 ops/sec 7275 usecs/op fsync_writethrough n/a open_sync 69.092 ops/sec 14473 usecs/op Compare open_sync with different write sizes: (This is designed to compare the cost of writing 16kB in different write open_sync sizes.) 1 * 16kB open_sync write 136.904 ops/sec 7304 usecs/op 2 * 8kB open_sync writes 68.857 ops/sec 14523 usecs/op 4 * 4kB open_sync writes 34.744 ops/sec 28782 usecs/op 8 * 2kB open_sync writes write failed: Invalid argument -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance