Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758423Ab0LCJOr (ORCPT ); Fri, 3 Dec 2010 04:14:47 -0500 Received: from e9.ny.us.ibm.com ([32.97.182.139]:59863 "EHLO e9.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755676Ab0LCJOp (ORCPT ); Fri, 3 Dec 2010 04:14:45 -0500 Date: Fri, 3 Dec 2010 01:14:45 -0800 From: "Darrick J. Wong" To: Christoph Hellwig Cc: "Theodore Ts'o" , linux-kernel , linux-ext4 Subject: Re: [PATCH] ext4: Set barrier=0 when block device does not advertise flush support Message-ID: <20101203091445.GK18195@tux1.beaverton.ibm.com> Reply-To: djwong@us.ibm.com References: <20101203001659.GI18195@tux1.beaverton.ibm.com> <20101203070950.GA19071@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101203070950.GA19071@infradead.org> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Content-Scanned: Fidelis XPS MAILER Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1640 Lines: 31 On Fri, Dec 03, 2010 at 02:09:50AM -0500, Christoph Hellwig wrote: > On Thu, Dec 02, 2010 at 04:16:59PM -0800, Darrick J. Wong wrote: > > If the user tries to enable write flushes with "barrier=1" and the underlying > > block device does not support flushes, print a message and set barrier=0. > > That doesn't make any sense at all with the ne wFLUSH+FUA code, which is > designed to make the cache flushing entirely transparanent. Basically > with the new code the barrier option should become a no-op and always > enabled. Are we ready to remove the barrier= mount option at this point? How many users exist who use barrier=0 to speed up write performance when they're willing to take on the added safety risk? I've noticed that provisioning goes faster if one mounts the filesystem with barrier=0; so long as the control software turns barriers on after the deploy finishes and always restarts the deploy after a failure, a power failure on the client system won't cause problems. Unfortunately, there doesn't seem to be any other way to communicate that relaxation to the code. Personally I'd rather the knob remain in ext4 on the grounds that I know my workloads and can judge the appropriate level of risk, especially since ext4 picks the safe option by default. However, I'd prefer /proc/mounts not misrepresent the status of flush support, to the best of ext4's knowledge. --D -- 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/