Re: [HACKERS] fsync method checking - Mailing list pgsql-performance

From Kurt Roeckx
Subject Re: [HACKERS] fsync method checking
Date
Msg-id 20040318200359.GA8330@ping.be
Whole thread Raw
In response to Re: [HACKERS] fsync method checking  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-performance
On Thu, Mar 18, 2004 at 02:22:10PM -0500, Bruce Momjian wrote:
>
> OK, what better test do you suggest?  Right now, there has been no
> testing of these.

I suggest you start by doing atleast preallocating a 16 MB file
and do the tests on that, to atleast be somewhat simular to what
WAL does.

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?

I think if you write more data you'll see more differences
between O_(D)SYNC and f(data)sync().

I guess it can depend on if you have lots of small transactions,
or more big ones.

Atleast try to make something that covers different access
patterns.


Kurt


pgsql-performance by date:

Previous
From: Kurt Roeckx
Date:
Subject: Re: [HACKERS] fsync method checking
Next
From: Richard Huxton
Date:
Subject: Re: two seperate queries run faster than queries ORed together