Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGs0e-0000LF-Bw for pgsql-performance@arkaria.postgresql.org; Sat, 25 Jun 2016 18:08:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bGs0d-0005D2-8t for pgsql-performance@arkaria.postgresql.org; Sat, 25 Jun 2016 18:08:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bGs0b-0005Ct-Oz for pgsql-performance@postgresql.org; Sat, 25 Jun 2016 18:08:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bGs0U-0004AG-An for pgsql-performance@postgresql.org; Sat, 25 Jun 2016 18:08:45 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u5PI8ZdX017638; Sat, 25 Jun 2016 14:08:35 -0400 From: Tom Lane To: "t.dalpozzo@gmail.com" cc: pgsql-performance@postgresql.org Subject: Re: can't explain commit performance win7 vs linux : 8000/s vs 419/s In-reply-to: <576EAF26.8080508@gmail.com> References: <576EAF26.8080508@gmail.com> Comments: In-reply-to "t.dalpozzo@gmail.com" message dated "Sat, 25 Jun 2016 18:19:50 +0200" Date: Sat, 25 Jun 2016 14:08:35 -0400 Message-ID: <17637.1466878115@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) 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 "t.dalpozzo@gmail.com" writes: > Performance: > Win7: 8000 write/sec > Linux: 419 write/sec My immediate reaction to that is that Windows isn't actually writing the data to disk when it should in order to guarantee that commits are persistent. There are multiple layers that might be trying to optimize away the writes, and I don't know enough about Windows to help you debug it. But see https://www.postgresql.org/docs/9.5/static/wal-reliability.html for some discussion. > I don't figure out why such a difference. Also what should I expect? > Which one is reasonable? The lower number sounds a lot more plausible for laptop-grade hardware. If you weren't using an SSD I wouldn't believe that one was doing persistent commits either. regards, tom lane -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance