Re: fsync method checking - Mailing list pgsql-hackers

From Tom Lane
Subject Re: fsync method checking
Date
Msg-id 11816.1079641223@sss.pgh.pa.us
Whole thread Raw
In response to Re: fsync method checking  (Kurt Roeckx <Q@ping.be>)
Responses Re: [PERFORM] fsync method checking  (Josh Berkus <josh@agliodbs.com>)
List pgsql-hackers
Kurt Roeckx <Q@ping.be> writes:
> I have no idea what the access pattern is for normal WAL
> operations or how many times it gets synched.  Does it only do
> f(data)sync() at commit time, or for every block it writes?

If we are using fsync/fdatasync, we issue those at commit time or when
completing a WAL segment.  If we are using the open flags, then of
course there's no separate sync call.

My previous point about checking different fsync spacings corresponds to
different assumptions about average transaction size.  I think a useful
tool for determining wal_sync_method has got to be able to reflect that
range of possibilities.

            regards, tom lane

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: fsync method checking
Next
From: Kurt Roeckx
Date:
Subject: Re: fsync method checking