From: Tom Lane <tgl@sss.pgh.pa.us>
To: Klaus P. Pieper <kpi6288@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: pgbench Windows outperforms Debian in Write tests while Debian is faster in SELECT only tests
Date: Mon, 29 May 2017 12:16:32 -0400
Message-ID: <12144.1496074592@sss.pgh.pa.us> (raw)
In-Reply-To: <030801d2d87b$4f556820$ee003860$@gmail.com>
References: <028501d2d84f$2f1ea840$8d5bf8c0$@gmail.com>
<31836.1496045941@sss.pgh.pa.us>
<030801d2d87b$4f556820$ee003860$@gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
"Klaus P. Pieper" <kpi6288@gmail.com> writes:
>> Are you sure you have Windows configured to fsync properly?
> It seems that it is indeed related to the wal_sync_method settings.
> Results for 1 client read / write:
> Option Windows Debian
> fdatasync 340 150
> fsync 125 90
> open_datasync 360 160
> fsync_writethrough 115 n/a
> open_sync n/a 90
> fsync = off 360 400
OK, so open_datasync and fdatasync are nonfunctional on Windows, which
is unsurprising. The other cases are evidently doing *something*, but
the amount of overhead is variable from one sync method to another,
which is likewise unsurprising. The whole reason why we have these
options at all is that some systems handle some of them better than
others. In this case, I think the relevant conclusion is that correct
configuration for Debian is to use open_datasync or fdatasync, while
correct configuration for Windows is to use fsync or fsync_writethrough,
and when you compare those two configurations, yes Windows is slower.
If you're a paranoid sort you would want to do plug-pull testing
to ensure that your selected setting actually does prevent data
corruption during a system crash.
regards, tom lane
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, kpi6288@gmail.com
Subject: Re: pgbench Windows outperforms Debian in Write tests while Debian is faster in SELECT only tests
In-Reply-To: <12144.1496074592@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