Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Changing the default wal_sync_method to open_sync for Win32?


  • From: "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>
  • To: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>
  • Cc: "Magnus Hagander" <mha(at)sollentuna(dot)net>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgsql-hackers-win32(at)postgresql(dot)org>
  • Subject: Re: Changing the default wal_sync_method to open_sync for Win32?
  • Date: Thu, 17 Mar 2005 08:19:19 -0500
  • Message-id: <6EE64EF3AB31D5448D0007DD34EEB3412A7653(at)Herge(dot)rcsinc(dot)local>

> Magnus Hagander wrote:
> > I'd like to see this one also considered for 8.0.x, though I'd
certainly
> > like to see some more testing as well. Perhaps it's suitable for the
> > "8.0.x with extended testing" that is planned for the ARC
replacement
> > code?
> >
> > It does make a huge difference on win32. While we definitly don't
want
> > to risk data, a 60% speedup in write intensive apps is a *lot*.
> 
> While this patch has been applied to CVS HEAD, there are still two
open
> issues:
> 
> 1.  Should it be the default wal_sync_method for Win32?

I vote no.  Even though the performance of fsync sucks, it is safe, and
the stock config on most win32 systems is to cache writes.  I suspect
that while write caching on/O_SYNC might be a little safer that fsync
due to a shorter cache degradation period, it's not good enough.


> 2.  Another question is what to do with 8.0.X?  Do we backpatch this
for
> Win32 performance?  Can we test it enough to know it will work well?
> 8.0.2 is going to have a more rigorous testing cycle because of the
> buffer manager changes.

I vote to backport.  Without O_SYNC, it is impossible to get reasonable
performance out of a caching raid controller in many configurations.

Merlin



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group