Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760068AbXHEWrT (ORCPT ); Sun, 5 Aug 2007 18:47:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751126AbXHEWrI (ORCPT ); Sun, 5 Aug 2007 18:47:08 -0400 Received: from thunk.org ([69.25.196.29]:56212 "EHLO thunker.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751011AbXHEWrH (ORCPT ); Sun, 5 Aug 2007 18:47:07 -0400 Date: Sun, 5 Aug 2007 18:46:47 -0400 From: Theodore Tso To: Florian Weimer Cc: Andrew Morton , Linus Torvalds , Ingo Molnar , Peter Zijlstra , linux-mm@kvack.org, linux-kernel@vger.kernel.org, miklos@szeredi.hu, neilb@suse.de, dgc@sgi.com, tomoki.sekiyama.qu@hitachi.com, nikita@clusterfs.com, trond.myklebust@fys.uio.no, yingchao.zhou@gmail.com, richard@rsk.demon.co.uk Subject: Re: [PATCH 00/23] per device dirty throttling -v8 Message-ID: <20070805224646.GC32217@thunk.org> Mail-Followup-To: Theodore Tso , Florian Weimer , Andrew Morton , Linus Torvalds , Ingo Molnar , Peter Zijlstra , linux-mm@kvack.org, linux-kernel@vger.kernel.org, miklos@szeredi.hu, neilb@suse.de, dgc@sgi.com, tomoki.sekiyama.qu@hitachi.com, nikita@clusterfs.com, trond.myklebust@fys.uio.no, yingchao.zhou@gmail.com, richard@rsk.demon.co.uk References: <20070803123712.987126000@chello.nl> <20070804063217.GA25069@elte.hu> <20070804070737.GA940@elte.hu> <20070804103347.GA1956@elte.hu> <20070804094119.81d8e533.akpm@linux-foundation.org> <87wswbjejw.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87wswbjejw.fsf@mid.deneb.enyo.de> User-Agent: Mutt/1.5.13 (2006-08-11) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on thunker.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1447 Lines: 30 On Sat, Aug 04, 2007 at 09:16:35PM +0200, Florian Weimer wrote: > * Andrew Morton: > > > The easy preventive is to mount with data=writeback. Maybe that should > > have been the default. > > The documentation I could find suggests that this may lead to a > security weakness (old data in blocks of a file that was grown just > before the crash leaks to a different user). XFS overwrites that data > with zeros upon reboot, which tends to irritate users when it happens. > > From this point of view, data=ordered doesn't seem too bad. The other alternative which addresses the security concern is data=journal, which if you have a big enough journal, can sometimes be *faster* than data=ordered or even data=writeback, because it reduces seeking. The problem is that it's workload dependent which is better; if the workload is very, very heavy on data writes, each data block ends up getting writen twice, once to the journal and once to the final location on disk, and so this halves your total max write bandwidth. But if the workload doesn't do as much writing, and is very seeky, and or is very, very, fsync()-centric (like a mailhub), data=journal is probably the right answer. - Ted - 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/