From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932302Ab2LNTpx (ORCPT ); Fri, 14 Dec 2012 14:45:53 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:23875 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932284Ab2LNTpv (ORCPT ); Fri, 14 Dec 2012 14:45:51 -0500 Date: Fri, 14 Dec 2012 11:43:40 -0800 From: "Darrick J. Wong" To: Dave Chinner Cc: Andy Lutomirski , axboe@kernel.dk, lucho@ionkov.net, jack@suse.cz, ericvh@gmail.com, viro@zeniv.linux.org.uk, rminnich@sandia.gov, tytso@mit.edu, martin.petersen@oracle.com, neilb@suse.de, Zheng Liu , linux-kernel@vger.kernel.org, hch@infradead.org, linux-fsdevel@vger.kernel.org, adilger.kernel@dilger.ca, bharrosh@panasas.com, jlayton@samba.org, v9fs-developer@lists.sourceforge.net, linux-ext4@vger.kernel.org Subject: Re: [PATCH 4/4] block: Optionally snapshot page contents to provide stable pages during write Message-ID: <20121214194340.GI9453@blackbox.djwong.org> References: <20121213080740.23360.16346.stgit@blackbox.djwong.org> <20121213080811.23360.98131.stgit@blackbox.djwong.org> <50CA8556.7030905@mit.edu> <20121214021048.GF9453@blackbox.djwong.org> <20121214033334.GA9806@dastard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121214033334.GA9806@dastard> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: ucsinet21.oracle.com [156.151.31.93] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 14, 2012 at 02:33:34PM +1100, Dave Chinner wrote: > On Thu, Dec 13, 2012 at 06:10:49PM -0800, Darrick J. Wong wrote: > > On Thu, Dec 13, 2012 at 05:48:06PM -0800, Andy Lutomirski wrote: > > > On 12/13/2012 12:08 AM, Darrick J. Wong wrote: > > > > Several complaints have been received regarding long file write latencies when > > > > memory pages must be held stable during writeback. Since it might not be > > > > acceptable to stall programs for the entire duration of a page write (which may > > > > take many milliseconds even on good hardware), enable a second strategy wherein > > > > pages are snapshotted as part of submit_bio; the snapshot can be held stable > > > > while writes continue. > > > > > > > > This provides a band-aid to provide stable page writes on jbd without needing > > > > to backport the fixed locking scheme in jbd2. A mount option is added to ext4 > > > > to allow administrators to enable it there. > > > > > > I'm a bit confused as to what it has to do with ext3. Wouldn't this be > > > useful as a mount option everywhere, though? > > > > ext3 requires snapshots; the rest are ok with either strategy. > > > > *If* snapshotting is generally liked, then yes I'll go redo it as a vfs mount > > option. > > It's copying every single IO, right? If so, then please don't > propagate any further than is necessary to fix the broken > filesystems... Yup. I wasn't intending this flag for general service, though I /am/ curious to hear if anyone sees any substantive performance difference with snapshots. --D > > Cheers, > > Dave. > -- > Dave Chinner > david@fromorbit.com