pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: olivier.gosseaume@free.fr
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13484: Performance problem with logical decoding
Date: Mon, 6 Jul 2015 23:44:54 +0200 (CEST)
Message-ID: <750970196.17190175.1436219094798.JavaMail.root@zimbra72-e12.priv.proxad.net> (raw)
In-Reply-To: <20150706210527.GE340@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

  
>> >Are you stopping pg_recvlogical between the runs, or are you letting it
>> >run? The point of using it is that it's a streaming, i.e. that you do
>> >not need to pay to "startup" costs of logical decoding, which can be
>> >noticeable.
>>
>> No, I just let it run. In my case the bottleneck seems to be on server
>> side when spilling to disk. I can see the server build the files but
>> very slowly.
>
>That's odd. It's really just a plain series of writes. I wonder if for
>some reason windows disables write buffering or such?
>
>Ugh, I have a theory. I guess you can't easily recompile postgres with a
>patch and test again? I don't have access to windows...

Thanks for your finding. I can try to recompile on Windows (will look how). In fact I did a test with a tool called "API Monitor" which displays all Windows API calls during postgres execution. What I see is :
- approx 8000 writes
- for each individual write I see a call to FlushFileBuffers() which is very bad for performance, so it is a Windows only issue

>Any chance you could cross check on a unixoid OS? Just to rule out it's
>not some configuration/setup/? issue?

I can try in a virtualbox, but I would prefer to test your patch before if possible

br
Olivier


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (19+ messages)  latest in thread

Message-ID: <750970196.17190175.1436219094798.JavaMail.root@zimbra72-e12.priv.proxad.net>
Permalink:  ../750970196.17190175.1436219094798.JavaMail.root@zimbra72-e12.priv.proxad.net/
Also on:    postgresql.org/message-id/750970196.17190175.1436219094798.JavaMail.root@zimbra72-e12.priv.proxad.net

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: olivier.gosseaume@free.fr, andres@anarazel.de
  Subject: Re: BUG #13484: Performance problem with logical decoding
  In-Reply-To: <750970196.17190175.1436219094798.JavaMail.root@zimbra72-e12.priv.proxad.net>
  References: <20150706210527.GE340@alap3.anarazel.de> <750970196.17190175.1436219094798.JavaMail.root@zimbra72-e12.priv.proxad.net>

* 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