Document how to turn off disk write cache on popular operating systems.
authorBruce Momjian <[email protected]>
Mon, 10 Dec 2007 14:05:05 +0000 (14:05 +0000)
committerBruce Momjian <[email protected]>
Mon, 10 Dec 2007 14:05:05 +0000 (14:05 +0000)
doc/src/sgml/wal.sgml

index b9a419f602297eec810a888c1bc2b2b2f16efcce..96bfaf01188357cb469786890911ab5d1f1e0d9e 100644 (file)
    while some are write-back, and the
    same concerns about data loss exist for write-back drive caches as
    exist for disk controller caches.  Consumer-grade IDE drives are
-   particularly likely to contain write-back caches that will not
-   survive a power failure.
+   particularly likely to have write-back caches that will not survive a
+   power failure.  To check write caching on <productname>Linux</> use
+   <command>hdparm -I</>;  it is enabled if there is a <literal>*</> next
+   to <literal>Write cache</>.  <command>hdparm -W</> can to turn off
+   write caching.  On <productname>FreeBSD</> use
+   <application>atacontrol</>.  (For SCSI disks use <ulink
+   url="http://sg.torque.net/sg/sdparm.html"><application>sdparm</></ulink>
+   to turn off <literal>WCE</>.)  On <productname>Windows</> write caching is
+   controlled by <literal>My Computer\Open\{select disk
+   drive}\Properties\Hardware\Properties\Policies\Enable write caching on
+   the disk</>.
   </para>
 
   <para>