Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 2B91B632E6A for ; Mon, 1 Mar 2010 23:34:11 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 91252-09 for ; Tue, 2 Mar 2010 03:33:51 +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 4A9A1632C4E for ; Mon, 1 Mar 2010 23:34:00 -0400 (AST) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id o223Xrf20941; Mon, 1 Mar 2010 22:33:53 -0500 (EST) From: Bruce Momjian Message-Id: <201003020333.o223Xrf20941@momjian.us> Subject: Re: SSD + RAID In-Reply-To: <4B89EB7C.8040606@cheapcomplexdevices.com> To: Ron Mayer Date: Mon, 1 Mar 2010 22:33:53 -0500 (EST) CC: Greg Smith , 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=-1.447 tagged_above=-10 required=5 tests=AWL=-0.707, BAYES_20=-0.74 X-Spam-Level: X-Archive-Number: 201003/14 X-Sequence-Number: 37839 Ron Mayer wrote: > Bruce Momjian wrote: > > Greg Smith wrote: > >> Bruce Momjian wrote: > >>> I have added documentation about the ATAPI drive flush command, and the > >> > >> If one of us goes back into that section one day to edit again it might > >> be worth mentioning that FLUSH CACHE EXT is the actual ATAPI-6 command > >> that a drive needs to support properly. I wouldn't bother with another > >> doc edit commit just for that specific part though, pretty obscure. > > > > That setting name was not easy to find so I added it to the > > documentation. > > If we're spelling out specific IDE commands, it might be worth > noting that the corresponding SCSI command is "SYNCHRONIZE CACHE"[1]. > > > Linux apparently sends FLUSH_CACHE commands to IDE drives in the > exact sample places it sends SYNCHRONIZE CACHE commands to SCSI > drives[2]. > > It seems that the same file systems, SW raid layers, > virtualization platforms, and kernels that have a problem > sending FLUSH CACHE commands to SATA drives have he same exact > same problems sending SYNCHRONIZE CACHE commands to SCSI drives. > With the exact same effect of not getting writes all the way > through disk caches. I always assumed SCSI disks had a write-through cache and therefore didn't need a drive cache flush comment. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com PG East: http://www.enterprisedb.com/community/nav-pg-east-2010.do