From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id 5F5FF7F52 for ; Fri, 22 Nov 2013 03:21:43 -0600 (CST) Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by relay3.corp.sgi.com (Postfix) with ESMTP id C1827AC004 for ; Fri, 22 Nov 2013 01:21:42 -0800 (PST) Received: from bombadil.infradead.org ([198.137.202.9]) by cuda.sgi.com with ESMTP id AqR5WyyDfS7YA1dI (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 22 Nov 2013 01:21:41 -0800 (PST) Date: Fri, 22 Nov 2013 01:21:36 -0800 From: Christoph Hellwig Subject: Re: Filesystem writes on RAID5 too slow Message-ID: <20131122092136.GD32568@infradead.org> References: <528A5C45.4080906@redhat.com> <20131119005740.GY6188@dastard> <20131121092606.GU11434@dastard> <20131121234116.GD6502@dastard> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20131121234116.GD6502@dastard> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Dave Chinner Cc: Martin Boutin , "Kernel.org-Linux-RAID" , xfs-oss , "Kernel.org-Linux-EXT4" , Eric Sandeen > From: Dave Chinner > > The function xfs_bmap_isaeof() is used to indicate that an > allocation is occurring at or past the end of file, and as such > should be aligned to the underlying storage geometry if possible. > > Commit 27a3f8f ("xfs: introduce xfs_bmap_last_extent") changed the > behaviour of this function for empty files - it turned off > allocation alignment for this case accidentally. Hence large initial > allocations from direct IO are not getting correctly aligned to the > underlying geometry, and that is cause write performance to drop in > alignment sensitive configurations. > > Fix it by considering allocation into empty files as requiring > aligned allocation again. > > Signed-off-by: Dave Chinner Ooops. The fix looks good, Reviewed-by: Christoph Hellwig Might be worth cooking up a test for this, scsi_debug can expose geometry, and we already have it wired to to large sector size testing in xfstests. _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs