Re: PgSQL 12 on WinSrv ~3x faster than on Linux

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PgSQL 12 on WinSrv ~3x faster than on Linux
Дата
Msg-id 143097.1622814050@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: PgSQL 12 on WinSrv ~3x faster than on Linux  (David Rowley <dgrowleyml@gmail.com>)
Ответы RE: PgSQL 12 on WinSrv ~3x faster than on Linux
Список pgsql-performance
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



В списке pgsql-performance по дате отправления:

Предыдущее
От: Vijaykumar Jain
Дата:
Сообщение: Re: PgSQL 12 on WinSrv ~3x faster than on Linux
Следующее
От: Taras Savchuk
Дата:
Сообщение: RE: PgSQL 12 on WinSrv ~3x faster than on Linux