Re: WALWriter active during recovery

Поиск
Список
Период
Сортировка
От didier
Тема Re: WALWriter active during recovery
Дата
Msg-id CAJRYxuJb-QTwh5K6H9PyXr8=XNKzS5R_i3GBtuCH=8wE=HTDAQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: WALWriter active during recovery  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список 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

Вложения

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

Предыдущее
От: Alex Shulgin
Дата:
Сообщение: Re: REVIEW: Track TRUNCATE via pgstat
Следующее
От: Teodor Sigaev
Дата:
Сообщение: Re: speedup tidbitmap patch: cache page