From: Ric Wheeler Subject: Re: wishful thinking about atomic, multi-sector or full MD stripe width, writes in storage Date: Thu, 03 Sep 2009 20:39:36 -0400 Message-ID: <4AA061C8.9080600@redhat.com> References: <20090828064449.GA27528@elf.ucw.cz> <20090828120854.GA8153@mit.edu> <20090830075135.GA1874@ucw.cz> <4A9A88B6.9050902@redhat.com> <4A9A9034.8000703@msgid.tls.msk.ru> <20090830163513.GA25899@infradead.org> <4A9BCCEF.7010402@redhat.com> <20090831131626.GA17325@infradead.org> <4A9BCDFE.50008@rtr.ca> <20090831132139.GA5425@infradead.org> <4A9F230F.40707@redhat.com> <4A9FA5F2.9090704@redhat.com> <4A9FC9B3.1080809@redhat.com> <4A9FCF6B.1080704@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Christoph Hellwig , Mark Lord , Michael Tokarev , david@lang.hm, Pavel Machek , Theodore Tso , NeilBrown , Rob Landley , Florian Weimer , Goswin von Brederlow , kernel list , Andrew Morton , mtk.manpages@gmail.com, rdunlap@xenotime.net, linux-doc@vger.kernel.org, linux-ext4@vger.kernel.org, corbet@lwn.net To: Krzysztof Halasa Return-path: In-Reply-To: Sender: linux-doc-owner@vger.kernel.org List-Id: linux-ext4.vger.kernel.org On 09/03/2009 07:50 PM, Krzysztof Halasa wrote: > Ric Wheeler writes: > > >> The whole thread above is about software MD using commodity drives >> (S-ATA or SAS) without battery backed write cache. >> > Yes. However, you mentioned external RAID arrays disable disk caches. > That's why I asked if they are using SATA or SCSI/etc. disks, and if > they have battery-backed cache. > > Sorry for the confusion - they disable the write caches on the component drives normally, but have their own write cache which is not disabled in most cases. >> Also, when you enable the write cache (MD or not) you are buffering >> multiple MB's of data that can go away on power loss. Far greater >> (10x) the exposure that the partial RAID rewrite case worries about. >> > The cache is flushed with working barriers. I guess it should be > superior to disabled WB cache, in both performance and expected disk > lifetime. > True - barriers (especially on big, slow s-ata drives) usually give you an overall win. SAS drives it seems to make less of an impact, but then you always need to benchmark your workload on anything to get the only numbers that really matter :-) ric