From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111]) by oss.sgi.com (Postfix) with ESMTP id 724E47F5E for ; Tue, 6 Jan 2015 23:31:49 -0600 (CST) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by relay1.corp.sgi.com (Postfix) with ESMTP id 611BA8F8033 for ; Tue, 6 Jan 2015 21:31:49 -0800 (PST) Received: from sandeen.net (sandeen.net [63.231.237.45]) by cuda.sgi.com with ESMTP id u5NDXy2bFKtLxrOm for ; Tue, 06 Jan 2015 21:31:45 -0800 (PST) Message-ID: <54ACC4C0.2030802@sandeen.net> Date: Tue, 06 Jan 2015 23:31:44 -0600 From: Eric Sandeen MIME-Version: 1.0 Subject: Re: What is a recommended XFS sector size for hybrid (512e) advanced format hard drives? References: <1806495.BCZcrVVEOf@shtub-cm> <54AC1511.1060908@sandeen.net> <54AC363E.1090109@sandeen.net> In-Reply-To: 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: Chris Murphy Cc: "xfs@oss.sgi.com" On 1/6/15 1:55 PM, Chris Murphy wrote: > What's sectsz= used for? Historically this would be sectsz=512, > bsize=4096 before AF hard drives appeared. So is sectsz used for > optimizing sub blocksize changes? e.g. if only 50 bytes needs > changing, the fs doesn't need to read modify and write the entire 4096 > block, just change the affected sector? Nope, filesystem data blocks are always fully written, but the sector size is i.e. the minimum _log_ IO size. +/* + * The xfs_buftarg contains 2 notions of "sector size" - + * + * 1) The metadata sector size, which is the minimum unit and + * alignment of IO which will be performed by metadata operations. + * 2) The device logical sector size + * + * The first is specified at mkfs time, and is stored on-disk in the + * superblock's sb_sectsize. + * + * The latter is derived from the underlying device, and controls direct IO + * alignment constraints. -Eric _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs