Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id BB68663287C for ; Mon, 22 Feb 2010 10:37:49 -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 60806-01-4 for ; Mon, 22 Feb 2010 14:37:38 +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 1F1F4632817 for ; Mon, 22 Feb 2010 10:37:17 -0400 (AST) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id o1MEbDJ13005; Mon, 22 Feb 2010 09:37:13 -0500 (EST) From: Bruce Momjian Message-Id: <201002221437.o1MEbDJ13005@momjian.us> Subject: Re: SSD + RAID In-Reply-To: <4B82187A.7060604@2ndquadrant.com> To: Greg Smith Date: Mon, 22 Feb 2010 09:37:13 -0500 (EST) CC: Ron Mayer , pgsql-performance X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201002/295 X-Sequence-Number: 37716 Greg Smith wrote: > Ron Mayer wrote: > > Bruce Momjian wrote: > > > >> Agreed, thought I thought the problem was that SSDs lie about their > >> cache flush like SATA drives do, or is there something I am missing? > >> > > > > There's exactly one case I can find[1] where this century's IDE > > drives lied more than any other drive with a cache: > > Ron is correct that the problem of mainstream SATA drives accepting the > cache flush command but not actually doing anything with it is long gone > at this point. If you have a regular SATA drive, it almost certainly > supports proper cache flushing. And if your whole software/storage > stacks understands all that, you should not end up with corrupted data > just because there's a volative write cache in there. OK, but I have a few questions. Is a write to the drive and a cache flush command the same? Which file systems implement both? I thought a write to the drive was always assumed to flush it to the platters, assuming the drive's cache is set to write-through. -- 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. +