Commit a84b605a authored by Bruce Momjian's avatar Bruce Momjian

Document how to control the disk write cache on Solaris.

Zdenek Kotala
parent 7dab896a
<!-- $PostgreSQL: pgsql/doc/src/sgml/wal.sgml,v 1.51 2007/12/16 14:05:12 momjian Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/wal.sgml,v 1.52 2007/12/29 17:55:07 momjian Exp $ -->
<chapter id="wal"> <chapter id="wal">
<title>Reliability and the Write-Ahead Log</title> <title>Reliability and the Write-Ahead Log</title>
...@@ -65,10 +65,14 @@ ...@@ -65,10 +65,14 @@
write caching. On <productname>FreeBSD</> use write caching. On <productname>FreeBSD</> use
<application>atacontrol</>. (For SCSI disks use <ulink <application>atacontrol</>. (For SCSI disks use <ulink
url="http://sg.torque.net/sg/sdparm.html"><application>sdparm</></ulink> url="http://sg.torque.net/sg/sdparm.html"><application>sdparm</></ulink>
to turn off <literal>WCE</>.) On <productname>Windows</> if to turn off <literal>WCE</>.) On <productname>Solaris</> the disk
<varname>wal_sync_method</> is <literal>open_datasync</> (the default), write cache is controlled by <ulink
write caching is disabled by unchecking <literal>My url="http://www.sun.com/bigadmin/content/submitted/format_utility.jsp"><literal>format
Computer\Open\{select disk -e</></ulink>. (The Solaris <acronym>ZFS</> file system is safe with
disk write-cache enabled because it issues its own disk cache flush
commands.) On <productname>Windows</> if <varname>wal_sync_method</>
is <literal>open_datasync</> (the default), write caching is disabled
by unchecking <literal>My Computer\Open\{select disk
drive}\Properties\Hardware\Properties\Policies\Enable write caching on drive}\Properties\Hardware\Properties\Policies\Enable write caching on
the disk</>. Also on Windows, <literal>fsync</> and the disk</>. Also on Windows, <literal>fsync</> and
<literal>fsync_writethrough</> never do write caching. <literal>fsync_writethrough</> never do write caching.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment