xfs
[Top] [All Lists]

Re: 4K drives, sectsz=512, bsize=4096

To: Michael Monnerie <michael.monnerie@xxxxxxxxxxxxxxxxxxx>, Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: 4K drives, sectsz=512, bsize=4096
From: Gim Leong Chin <chingimleong@xxxxxxxxxxxx>
Date: Wed, 1 Sep 2010 13:35:10 +0800 (SGT)
Cc: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.sg; s=s1024; t=1283319310; bh=VIJXqdZ2rAEHXAQ4X+jJGO5an0Wdl11uH19cT1V2Lbw=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=HXWx/sTftwgg5eCYbJ4HrNapujERnS46PIGve/zOucWuN6dPrwevJnY++QiURWw1zbhNN6l5gz0HSvydujt6VRCK8TQSqSvh7Gitg3Da4jlpNCcFvSDY25MEfI/fFPnfYh4SUcSJ6DiUeyCFJ9AUV21IFgd3AEpbArfXzwbIxkE=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.sg; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=0/x2ZVvtPc0FYSV998uqBWE324opZ3e42tUA40TkLNfk13TsV4tMwUXpOiArvlT6CMMTgUWoMZjaXa7I7yh2DZzhlVMmpR5Ax5Z2B99ILWALpFaLzO1GJnvONWUI6BtWQ0jk3fmu/eHuwmRDYUSNctnrV0eEzfMDidMv7dLa2Zo=;
In-reply-to: <1177874643.527261283294068615.JavaMail.root@xxxxxxxxxxxxxxxxxx>
Hi,

I would like to know how the inode size should be configured for 4 kB sector 
drives?

Should we leave it at the default 256 bytes, or set it to the maximum of 2 kB?

Do inodes occupy discrete sectors, or do they occupy part of the filesystem 
block?


GL

--- On Wed, 1/9/10, Nathan Scott <nathans@xxxxxxxxxx> wrote:

> From: Nathan Scott <nathans@xxxxxxxxxx>
> Subject: Re: 4K drives, sectsz=512, bsize=4096
> To: "Michael Monnerie" <michael.monnerie@xxxxxxxxxxxxxxxxxxx>
> Cc: xfs@xxxxxxxxxxx
> Date: Wednesday, 1 September, 2010, 6:34 AM
> 
> ----- "Michael Monnerie" <michael.monnerie@xxxxxxxxxxxxxxxxxxx>
> wrote:
> 
> > On Dienstag, 31. August 2010 Eric Sandeen wrote:
> > > If you do it right (and especially vs. if you do
> it wrong) it
> > > should be a bit faster if all IOs are 4k aligned
> on the disk.
>
> > And that's what's interesting me: why? Won't XFS do
> all I/Os at
> > minimum 
> > for a given block size? Or is it possible XFS does
> write only a single
> > sector? I'd expect the smallest I/O size to be the
> block size, but it
> > seems I'm wrong?
> 
> Log I/O and direct writes are sector sized & aligned.
> 
> > I guess there's no way to "convert" an existing XFS
> with 
> > sectsz=512,bsize=4096 to sectsz=4096,bsize=4096? Maybe
> that's only a 
> > flag that can be changed?
> 
> There's no way (other than dump, mkfs & restore), the
> filesystem is laid
> out differently (most data structures, like superblocks and
> other metadata
> become 4K aligned).
> 
> cheers.
> 
> -- 
> Nathan
> 
> _______________________________________________
> xfs mailing list
> xfs@xxxxxxxxxxx
> http://oss.sgi.com/mailman/listinfo/xfs
> 



<Prev in Thread] Current Thread [Next in Thread>