Skip to content

Commit 51a3351

Browse files
committed
Document how to turn off disk write cache on popular operating systems.
1 parent 8828689 commit 51a3351

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

doc/src/sgml/wal.sgml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/wal.sgml,v 1.46 2007/11/28 15:42:31 petere Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/wal.sgml,v 1.47 2007/12/10 14:05:05 momjian Exp $ -->
22

33
<chapter id="wal">
44
<title>Reliability and the Write-Ahead Log</title>
@@ -58,8 +58,17 @@
5858
while some are write-back, and the
5959
same concerns about data loss exist for write-back drive caches as
6060
exist for disk controller caches. Consumer-grade IDE drives are
61-
particularly likely to contain write-back caches that will not
62-
survive a power failure.
61+
particularly likely to have write-back caches that will not survive a
62+
power failure. To check write caching on <productname>Linux</> use
63+
<command>hdparm -I</>; it is enabled if there is a <literal>*</> next
64+
to <literal>Write cache</>. <command>hdparm -W</> can to turn off
65+
write caching. On <productname>FreeBSD</> use
66+
<application>atacontrol</>. (For SCSI disks use <ulink
67+
url="http://sg.torque.net/sg/sdparm.html"><application>sdparm</></ulink>
68+
to turn off <literal>WCE</>.) On <productname>Windows</> write caching is
69+
controlled by <literal>My Computer\Open\{select disk
70+
drive}\Properties\Hardware\Properties\Policies\Enable write caching on
71+
the disk</>.
6372
</para>
6473

6574
<para>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy