Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760019Ab0KRR4k (ORCPT ); Thu, 18 Nov 2010 12:56:40 -0500 Received: from rcsinet10.oracle.com ([148.87.113.121]:48681 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753019Ab0KRR4j (ORCPT ); Thu, 18 Nov 2010 12:56:39 -0500 Content-Type: text/plain; charset=UTF-8 From: Chris Mason To: James Bottomley Cc: Christoph Hellwig , Matthew Wilcox , Josef Bacik , Lukas Czerner , tytso , linux-ext4 , linux-kernel , linux-fsdevel , sandeen Subject: Re: [PATCH 1/2] fs: Do not dispatch FITRIM through separate super_operation In-reply-to: <1290100750.3041.72.camel@mulgrave.site> References: <1290065809-3976-1-git-send-email-lczerner@redhat.com> <20101118130630.GJ6178@parisc-linux.org> <20101118134804.GN5618@dhcp231-156.rdu.redhat.com> <20101118141957.GK6178@parisc-linux.org> <20101118142918.GA18510@infradead.org> <1290100750.3041.72.camel@mulgrave.site> Date: Thu, 18 Nov 2010 12:55:40 -0500 Message-Id: <1290102616-sup-7212@think> User-Agent: Sup/git Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1871 Lines: 38 Excerpts from James Bottomley's message of 2010-11-18 12:19:10 -0500: > On Thu, 2010-11-18 at 09:29 -0500, Christoph Hellwig wrote: > > On Thu, Nov 18, 2010 at 07:19:58AM -0700, Matthew Wilcox wrote: > > > I guess I was assuming that, on receiving a FALLOC_FL_PUNCH_HOLE, a > > > filesystem that was TRIM-aware would pass that information down to the > > > block device that it's mounted on. I strongly feel that we shouldn't > > > have two interfaces to do essentially the same thing. > > > > > > I guess I'm saying that you're going to have to learn about TRIM :-) > > > > Did you actually look Lukas FITRIM code (not the slight reordering here, > > but the original one). It's the ext4 version of the batched discard > > model, that is a userspace ioctl to discard free space in the > > filesystem. > > > > hole punching will free the blocks into the free space pool. If you do > > online discard it will also get discarded, but a filesystem that has > > online discard enabled doesn't need FITRIM. > > Not stepping into the debate: I'm happy to see punch go to the mapping > data and FITRIM pick it up later. > > However, I think it's time to question whether we actually still want to > allow online discard at all. Most of the benchmarks show it to be a net > lose to almost everything (either SSD or Thinly Provisioned arrays), so > it's become an "enable this to degrade performance" option with no > upside. I think we want to keep it. In general we've (except for hch) spent almost zero time actually tuning online discard, and the benchmarking needs to be redone with the shiny new barrier code. -chris -- 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/