From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965889AbXCFOsQ (ORCPT ); Tue, 6 Mar 2007 09:48:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965896AbXCFOsQ (ORCPT ); Tue, 6 Mar 2007 09:48:16 -0500 Received: from pentafluge.infradead.org ([213.146.154.40]:49212 "EHLO pentafluge.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965114AbXCFOsN (ORCPT ); Tue, 6 Mar 2007 09:48:13 -0500 Date: Tue, 6 Mar 2007 14:47:46 +0000 From: Christoph Hellwig To: Ulrich Drepper Cc: Christoph Hellwig , Mingming Cao , Jan Kara , Andrew Morton , nscott@aconex.com, "Amit K. Arora" , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org, suparna@in.ibm.com, alex@clusterfs.com, suzuki@in.ibm.com Subject: Re: [RFC] Heads up on sys_fallocate() Message-ID: <20070306144746.GA22052@infradead.org> Mail-Followup-To: Christoph Hellwig , Ulrich Drepper , Mingming Cao , Jan Kara , Andrew Morton , nscott@aconex.com, "Amit K. Arora" , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org, suparna@in.ibm.com, alex@clusterfs.com, suzuki@in.ibm.com References: <20070225022326.137b4875.akpm@linux-foundation.org> <20070301183445.GA7911@amitarora.in.ibm.com> <20070301142537.b5950cd7.akpm@linux-foundation.org> <1172788855.26078.294.camel@edge> <20070301145256.3e999932.akpm@linux-foundation.org> <45E86CBA.3070905@us.ibm.com> <20070305122742.GA11486@atrey.karlin.mff.cuni.cz> <45EC7773.7020603@us.ibm.com> <20070306072850.GA23081@infradead.org> <45ED7C59.4050508@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45ED7C59.4050508@redhat.com> User-Agent: Mutt/1.4.2.2i X-SRS-Rewrite: SMTP reverse-path rewritten from by pentafluge.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 06, 2007 at 06:36:09AM -0800, Ulrich Drepper wrote: > Christoph Hellwig wrote: > > fallocate with the whence argument and flags is already quite complicated, > > I'd rather have another call for placement decisions, that would > > be called on an fd to do placement decissions for any further allocations > > (prealloc, write, etc) > > Yes, posix_fallocate shouldn't be made more complicated. But I don't > understand why requesting linear layout of the blocks should be an > option. It's always an advantage if the blocks requested this way are > linear on disk. So, the kernel should always do its best to make this > happen, without needing an additional option. There are HPC workloads where you have multi writers on multiple machines that write to different parts of a file. You preferably want each of those regions in separate allocation groups. (Or tell the customers to use separate files for the regions..)