Re: Double-writes, take two?

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Cc: Postgres hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Double-writes, take two?
Date: 2018-04-19 23:33:50
Message-ID: 20180419233350.GA2024@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Apr 18, 2018 at 11:40:51AM +0200, Fabien COELHO wrote:
>> - double-write buffers use a pre-decided numbers of pages (32 for the
>> checkpointer, 128 divided into 4 buckets for the backends), which are
>> synced into disk once each batch is full.
>
>> - The double-write file of the checkpointer uses ordering of pages using
>> blocks number and files to minimize the number of syncs to happen, using
>> a custom sequential I/O algorithm.
>
> I'm not sure from reading the descriptions.
>
> Are these particular features related/similar to 9cd00c4 "Checkpoint sorting
> and balancing" and 428b1d6 "Allow to trigger kernel writeback after a
> configurable number of writes", committed in February 2016?

Not real direct links that I know of, but the work which has been done
could be benefitial for checkpoints which need to handle doublle-write
streams.
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2018-04-19 23:56:35 Re: Double-writes, take two?
Previous Message Tatsuo Ishii 2018-04-19 22:58:00 Re: Built-in connection pooling