Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 9AF0E632FDD for ; Wed, 3 Mar 2010 11:16:52 -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 36430-10 for ; Wed, 3 Mar 2010 15:16:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp114.biz.mail.sp1.yahoo.com (smtp114.biz.mail.sp1.yahoo.com [69.147.92.227]) by mail.postgresql.org (Postfix) with SMTP id 7A1C2634446 for ; Wed, 3 Mar 2010 11:16:41 -0400 (AST) Received: (qmail 23429 invoked from network); 3 Mar 2010 15:16:39 -0000 Received: from [192.168.7.104] (rm_pg@76.201.141.5 with plain) by smtp114.biz.mail.sp1.yahoo.com with SMTP; 03 Mar 2010 07:16:39 -0800 PST X-Yahoo-SMTP: vGlHhPCswBDHoDrPQ1hdAE8TsaGS X-YMail-OSG: GPA92tcVM1nY9aiGOW3IYL_7SViMGxv8AhgfbB_SB0Tob_AGG7ol2eephBZonmjbfVIkTrjUo2QvdRWapLXdAQlBSCql9WAsaThqHjeOA0vEjqy1kaJegVQuIZXt1d2wyUdgZvHe4QoM6zHTh2_WB7JxNkrJDqbJVj9I5QhpneSFPYgU4vioktw1H4L1rVP8CQAtfnbC1iwwEneXkKVo6V2BEUaDQh4ayS2bANenJy4J0YdY_MU.FaC66Ueud0H0D7YTkcAuEF6r1bQYTF3zOd1.RwG08OXPSeRtTA9KnoUqXsw0F9.eQSn7Rk37yf4Cn7ouRHuMs0IsJDALMDuarC0N1Hn9MQ-- X-Yahoo-Newman-Property: ymail-3 Message-ID: <4B8E7D58.9030208@cheapcomplexdevices.com> Date: Wed, 03 Mar 2010 07:16:40 -0800 From: Ron Mayer User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Greg Smith CC: Bruce Momjian , Ron Mayer , pgsql-performance Subject: Re: SSD + RAID References: <201003020333.o223Xrf20941@momjian.us> <4B8CAC89.1020100@2ndquadrant.com> In-Reply-To: <4B8CAC89.1020100@2ndquadrant.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.185 tagged_above=-10 required=5 tests=BAYES_40=-0.185 X-Spam-Level: X-Archive-Number: 201003/60 X-Sequence-Number: 37885 Greg Smith wrote: > Bruce Momjian wrote: >> I always assumed SCSI disks had a write-through cache and therefore >> didn't need a drive cache flush comment. Some do. SCSI disks have write-back caches. Some have both(!) - a write-back cache but the user can explicitly send write-through requests. Microsoft explains it well (IMHO) here: http://msdn.microsoft.com/en-us/library/aa508863.aspx "For example, suppose that the target is a SCSI device with a write-back cache. If the device supports write-through requests, the initiator can bypass the write cache by setting the force unit access (FUA) bit in the command descriptor block (CDB) of the write command." > this perception, which I've recently come to believe isn't actually > correct anymore. ... I'm staring to think this is what > we've all been observing rather than a write-through cache I think what we've been observing is that guys with SCSI drives are more likely to either (a) have battery-backed RAID controllers that insure writes succeed, or (b) have other decent RAID controllers that understand details like that FUA bit to send write-through requests even if a SCSI devices has a write-back cache. In contrast, most guys with PATA drives are probably running software RAID (if any) with a RAID stack (older LVM and MD) known to lose the cache flushing commands.