Re: IDE Drives and fsync - Mailing list pgsql-hackers

From Tom Lane
Subject Re: IDE Drives and fsync
Date
Msg-id 29666.1066081462@sss.pgh.pa.us
Whole thread Raw
In response to IDE Drives and fsync  ("scott.marlowe" <scott.marlowe@ihs.com>)
List pgsql-hackers
"scott.marlowe" <scott.marlowe@ihs.com> writes:
> Tom, you had mentioned adding a delay of some kind to the fsync logic, and 
> I'd be more than willing to try out any patch you'd like to toss out to me 
> to see if we can get a semi-stable behaviour out of IDE drives with the 
> -W1 and -f switches turned on.

I'd suggest experimenting with the delay in mdsync() in
src/backend/storage/smgr/md.c.  A larger delay should theoretically make
things more reliable.

If you see signs of corruption of the WAL itself, another knob you could
fool with is the wal_sync_method setting in postgresql.conf.  I have no
idea whether different sync methods would improve the odds of getting
the drive to write WAL sectors in the right order, but it'd be worth
experimenting with.

I dunno whether you have the ability to experiment with a dual-drive
machine, but it would certainly be worth revisiting all these tests
on a setup with WAL on a separate drive.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: http://www.pgsql.com/register/submit.php
Next
From: Tom Lane
Date:
Subject: Re: [PERFORM] Sun performance - Major discovery!