Re: Document how to turn off disk write cache on popular operating

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: Document how to turn off disk write cache on popular operating
Date: 2007-12-11 14:41:53
Message-ID: 20071211144153.GN31937@svr2.hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Tue, Dec 11, 2007 at 08:18:42AM -0500, Bruce Momjian wrote:
> Magnus Hagander wrote:
> > On Mon, Dec 10, 2007 at 02:05:05PM +0000, Bruce Momjian wrote:
> > > Log Message:
> > > -----------
> > > Document how to turn off disk write cache on popular operating systems.
> > >
> > > Modified Files:
> > > --------------
> > > pgsql/doc/src/sgml:
> > > wal.sgml (r1.46 -> r1.47)
> > > (http://developer.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/wal.sgml?r1=1.46&r2=1.47)
> >
> > Should this mention that you don't need to turn it off at the disk level if
> > you use fsync_writethrough?
>
> Uh, I remember we looked at this checkbox before but I don't remember
> the details, and I can't find a comment about it. Was the issue that
> writethrough always forces through the disk cache? Is that the default
> on Win32? Did we comment this somewhere?

If you set it to fsync or fsync_writethrough it will write through the
cache. (fsync is just an alias)
If you set it to OPEN_DATASYNC, it will respond to the checkbox you are
referring to.

OPEN_DATASYNC is the default, IIRC.

//Magnus

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2007-12-11 15:09:51 Re: Document how to turn off disk write cache on popular operating
Previous Message Magnus Hagander 2007-12-11 14:34:43 pgsql: Use _USE_32BIT_TIME_T when building with MSVC.

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2007-12-11 14:57:16 Re: [HACKERS] BUG #3799: csvlog skips some logs
Previous Message Magnus Hagander 2007-12-11 14:35:13 Re: [HACKERS] Problem with ControlFileData structure being ABI depe ndent