Re: WALWriter active during recovery - Mailing list pgsql-hackers

From didier
Subject Re: WALWriter active during recovery
Date
Msg-id CAJRYxuJb-QTwh5K6H9PyXr8=XNKzS5R_i3GBtuCH=8wE=HTDAQ@mail.gmail.com
Whole thread Raw
In response to Re: WALWriter active during recovery  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
Hi

On Wed, Dec 17, 2014 at 2:39 PM, Alvaro Herrera
<alvherre@2ndquadrant.com> wrote:
> didier wrote:
>
>> On many Linux systems it may not do that much (2.6.32 and 3.2 are bad,
>> 3.13 is better but still it slows the fsync).
>>
>> If there's a fsync in progress WALReceiver will:
>> 1- slow the fsync because its writes to the same file are grabbed by the fsync
>> 2- stall until the end of fsync.
>
> Is this behavior filesystem-dependent?
I don't know. I only tested  ext4

Attach the trivial code I used, there's a lot of junk in it.

Didier

Attachment

pgsql-hackers by date:

Previous
From: Alex Shulgin
Date:
Subject: Re: REVIEW: Track TRUNCATE via pgstat
Next
From: Teodor Sigaev
Date:
Subject: Re: speedup tidbitmap patch: cache page