Re: Controlling Load Distributed Checkpoints - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Controlling Load Distributed Checkpoints
Date
Msg-id 719.1181225785@sss.pgh.pa.us
Whole thread Raw
In response to Re: Controlling Load Distributed Checkpoints  (Heikki Linnakangas <heikki@enterprisedb.com>)
Responses Re: Controlling Load Distributed Checkpoints
Re: Controlling Load Distributed Checkpoints
List pgsql-hackers
Heikki Linnakangas <heikki@enterprisedb.com> writes:
> Thinking about this whole idea a bit more, it occured to me that the 
> current approach to write all, then fsync all is really a historical 
> artifact of the fact that we used to use the system-wide sync call 
> instead of fsyncs to flush the pages to disk. That might not be the best 
> way to do things in the new load-distributed-checkpoint world.

> How about interleaving the writes with the fsyncs?

I don't think it's a historical artifact at all: it's a valid reflection
of the fact that we don't know enough about disk layout to do low-level
I/O scheduling.  Issuing more fsyncs than necessary will do little
except guarantee a less-than-optimal scheduling of the writes.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Controlling Load Distributed Checkpoints
Next
From: ohp@pyrenet.fr
Date:
Subject: little PITR annoyance