Re: Load distributed checkpoint - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: Load distributed checkpoint
Date
Msg-id 20061227222645.GC12448@svana.org
Whole thread Raw
In response to Re: Load distributed checkpoint  ("Simon Riggs" <simon@2ndquadrant.com>)
Responses Re: Load distributed checkpoint
List pgsql-hackers
On Wed, Dec 27, 2006 at 09:24:06PM +0000, Simon Riggs wrote:
> On Fri, 2006-12-22 at 13:53 -0500, Bruce Momjian wrote:
>
> > I assume other kernels have similar I/O smoothing, so that data sent to
> > the kernel via write() gets to disk within 30 seconds.
> >
> > I assume write() is not our checkpoint performance problem, but the
> > transfer to disk via fsync().
>
> Well, its correct to say that the transfer to disk is the source of the
> problem, but that doesn't only occur when we fsync(). There are actually
> two disk storms that occur, because of the way the fs cache works. [Ron
> referred to this effect uplist]

As someone looking from the outside:

fsync only works on one file, so presumably the checkpoint process is
opening each file one by one and fsyncing them. Does that make any
difference here? Could you adjust the timing here?

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: pg_hba.conf hostname todo
Next
From: Tom Lane
Date:
Subject: Re: [PATCHES] [BUGS] BUG #2846: inconsistent and confusing handling of