Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757588AbZCZI7k (ORCPT ); Thu, 26 Mar 2009 04:59:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756987AbZCZI7Y (ORCPT ); Thu, 26 Mar 2009 04:59:24 -0400 Received: from brick.kernel.dk ([93.163.65.50]:52620 "EHLO kernel.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751408AbZCZI7W (ORCPT ); Thu, 26 Mar 2009 04:59:22 -0400 Date: Thu, 26 Mar 2009 09:59:18 +0100 From: Jens Axboe To: James Bottomley Cc: Ric Wheeler , Jeff Garzik , Linus Torvalds , Theodore Tso , Ingo Molnar , Alan Cox , Arjan van de Ven , Andrew Morton , Peter Zijlstra , Nick Piggin , David Rees , Jesper Krogh , Linux Kernel Mailing List Subject: Re: Linux 2.6.29 Message-ID: <20090326085918.GI27476@kernel.dk> References: <20090324184549.GE32307@mit.edu> <49C93AB0.6070300@garzik.org> <20090325093913.GJ27476@kernel.dk> <49CA86BD.6060205@garzik.org> <20090325194341.GB27476@kernel.dk> <49CA8ADA.3040709@redhat.com> <49CA9114.3040205@garzik.org> <49CA9324.6010407@redhat.com> <1238016170.3281.36.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1238016170.3281.36.camel@localhost.localdomain> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1756 Lines: 42 On Wed, Mar 25 2009, James Bottomley wrote: > On Wed, 2009-03-25 at 16:25 -0400, Ric Wheeler wrote: > > Jeff Garzik wrote: > > > Ric Wheeler wrote:> And, as I am sure that you do know, to add insult > > > to injury, FLUSH_CACHE > > >> is per device (not file system). > > >> > > >> When you issue an fsync() on a disk with multiple partitions, you > > >> will flush the data for all of its partitions from the write cache.... > > > > > > SCSI'S SYNCHRONIZE CACHE command already accepts an (LBA, length) > > > pair. We could make use of that. > > > > > > And I bet we could convince T13 to add FLUSH CACHE RANGE, if we could > > > demonstrate clear benefit. > > > > > > Jeff > > > > How well supported is this in SCSI? Can we try it out with a commodity > > SAS drive? > > What do you mean by well supported? The way the SCSI standard is > written, a device can do a complete cache flush when a range flush is > requested and still be fully standards compliant. There's no easy way > to tell if it does a complete cache flush every time other than by > taking the firmware apart (or asking the manufacturer). That's the fear of range flushes, if it was added to t13 as well. Unless that Other OS uses range flushes, most firmware writers would most likely implement any range as 0...-1 and it wouldn't help us at all. In fact it would make things worse, as we would have done extra work to actually find these ranges, unless you went cheap and said 'just flush this partition'. -- Jens Axboe -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/