From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Rowley <dgrowleyml@gmail.com>
Cc: Taras Savchuk <taras@1adm.ru>
Cc: pgsql-performance@lists.postgresql.org <pgsql-performance@lists.postgresql.org>
Subject: Re: PgSQL 12 on WinSrv ~3x faster than on Linux
Date: Fri, 04 Jun 2021 09:40:50 -0400
Message-ID: <143097.1622814050@sss.pgh.pa.us> (raw)
In-Reply-To: <CAApHDvoNcry5xotFks5+0bGmM0e9u6_r33AXA5QE7prFC3o-Bg@mail.gmail.com>
References: <A2530EEBE32D30489F836E3816E9631384D99B33@EXCH.o.1adm.ru>
<CAApHDvoNcry5xotFks5+0bGmM0e9u6_r33AXA5QE7prFC3o-Bg@mail.gmail.com>
David Rowley <dgrowleyml@gmail.com> writes:
> On Fri, 4 Jun 2021 at 23:53, Taras Savchuk <taras@1adm.ru> wrote:
>> Any ideas what's wrong? For me such a big difference on identical databases/queries looks strange.
> It's pretty difficult to say. You've not provided any useful details
> about the workload you're running.
> If this "register 10 _same_ documents" thing requires running some
> query, then you might want to look at EXPLAIN (ANALYZE, BUFFERS) for
> that query. You might want to consider doing SET track_io_timing =
> on; Perhaps Linux is having to read more buffers from disk than
> Windows.
The first thing that comes to mind for me is fsync working correctly
(i.e. actually waiting for the disk write) in Linux but not in Windows.
On a weird VM stack like you've got, it's not hard for that sort of
thing to go wrong. Needless to say, if that's the issue then the
apparent performance win is coming at the cost of crash safety.
pg_test_fsync might help detect such a problem.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, dgrowleyml@gmail.com, taras@1adm.ru, pgsql-performance@lists.postgresql.org
Subject: Re: PgSQL 12 on WinSrv ~3x faster than on Linux
In-Reply-To: <143097.1622814050@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox