Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 402FE63352A for ; Sat, 20 Feb 2010 14:29:11 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 13658-04 for ; Sat, 20 Feb 2010 18:29:00 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 8972D633305 for ; Sat, 20 Feb 2010 14:29:00 -0400 (AST) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id o1KIStQ12830; Sat, 20 Feb 2010 13:28:55 -0500 (EST) From: Bruce Momjian Message-Id: <201002201828.o1KIStQ12830@momjian.us> Subject: Re: SSD + RAID In-Reply-To: To: Matthew Wakeling Date: Sat, 20 Feb 2010 13:28:55 -0500 (EST) CC: Greg Smith , Laszlo Nagy , pgsql-performance X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="ELM1266690535-2080-0_" Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.11 tagged_above=-10 required=5 tests=BAYES_05=-1.11 X-Spam-Level: X-Archive-Number: 201002/278 X-Sequence-Number: 37699 --ELM1266690535-2080-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" Matthew Wakeling wrote: > On Fri, 13 Nov 2009, Greg Smith wrote: > > In order for a drive to work reliably for database use such as for > > PostgreSQL, it cannot have a volatile write cache. You either need a write > > cache with a battery backup (and a UPS doesn't count), or to turn the cache > > off. The SSD performance figures you've been looking at are with the drive's > > write cache turned on, which means they're completely fictitious and > > exaggerated upwards for your purposes. In the real world, that will result > > in database corruption after a crash one day. > > Seagate are claiming to be on the ball with this one. > > http://www.theregister.co.uk/2009/12/08/seagate_pulsar_ssd/ I have updated our documentation to mention that even SSD drives often have volatile write-back caches. Patch attached and applied. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com PG East: http://www.enterprisedb.com/community/nav-pg-east-2010.do + If your life is a hard drive, Christ can be your backup. + --ELM1266690535-2080-0_ Content-Transfer-Encoding: 7bit Content-Type: text/x-diff Content-Disposition: inline; filename="/rtmp/diff" Index: doc/src/sgml/wal.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/wal.sgml,v retrieving revision 1.61 diff -c -c -r1.61 wal.sgml *** doc/src/sgml/wal.sgml 3 Feb 2010 17:25:06 -0000 1.61 --- doc/src/sgml/wal.sgml 20 Feb 2010 18:26:40 -0000 *************** *** 59,65 **** same concerns about data loss exist for write-back drive caches as exist for disk controller caches. Consumer-grade IDE and SATA drives are particularly likely to have write-back caches that will not survive a ! power failure. To check write caching on Linux use hdparm -I; it is enabled if there is a * next to Write cache; hdparm -W to turn off write caching. On FreeBSD use --- 59,66 ---- same concerns about data loss exist for write-back drive caches as exist for disk controller caches. Consumer-grade IDE and SATA drives are particularly likely to have write-back caches that will not survive a ! power failure. Many solid-state drives also have volatile write-back ! caches. To check write caching on Linux use hdparm -I; it is enabled if there is a * next to Write cache; hdparm -W to turn off write caching. On FreeBSD use --ELM1266690535-2080-0_--