Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2993148AbXEBT3G (ORCPT ); Wed, 2 May 2007 15:29:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1766675AbXEBT3G (ORCPT ); Wed, 2 May 2007 15:29:06 -0400 Received: from THUNK.ORG ([69.25.196.29]:55603 "EHLO thunker.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2993148AbXEBT3D (ORCPT ); Wed, 2 May 2007 15:29:03 -0400 Date: Wed, 2 May 2007 15:28:49 -0400 From: Theodore Tso To: Andi Kleen Cc: Andrew Morton , "Cabot, Mason B" , linux-kernel@vger.kernel.org Subject: Re: Ext3 vs NTFS performance Message-ID: <20070502192849.GD19442@thunk.org> Mail-Followup-To: Theodore Tso , Andi Kleen , Andrew Morton , "Cabot, Mason B" , linux-kernel@vger.kernel.org References: <20070501142325.09c294bd.akpm@linux-foundation.org> <20070502160436.GA19442@thunk.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: 1396 Lines: 30 On Wed, May 02, 2007 at 08:40:35PM +0200, Andi Kleen wrote: > Theodore Tso writes: > > > On Wed, May 02, 2007 at 02:21:40PM +0200, Andi Kleen wrote: > > > Andrew Morton writes: > > > > > > > > Conceivably we could address this in the filesystem without mucking other > > > > things up. But I'd have thought the simplest damage-control would be to > > > > detect this pattern in samba and to then use glibc's fallocate(). > > > > > > The advantage of detecting it in kernel would be that it would handle > > > Linux applications that do this (I suspect there are some) too. > > > > Um, which applications do you suspect? So we can hunt down those user > > space applications programmers and slap them silly? Or rather, > > unsilly, since that there's no good reason to ever suspect that > > writing a byte every 128k would result in a good allocation layout on disk? > > Anything that uses glibc fallocate() ? Glibc's fallocate current writes all zeros, not 1 byte every 128kbytes. And once we wire up the new sys_fallocate() support, we'll have the right preallocation support in ext4. - 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/