xfs
[Top] [All Lists]

Re: LWN article: 4K disk sectors

To: Michael Monnerie <michael.monnerie@xxxxxxxxxxxxxxxxxxx>
Subject: Re: LWN article: 4K disk sectors
From: "Martin K. Petersen" <martin.petersen@xxxxxxxxxx>
Date: Thu, 12 Mar 2009 10:23:30 -0400
Cc: xfs@xxxxxxxxxxx
In-reply-to: <200903121452.16419@xxxxxx> (Michael Monnerie's message of "Thu\, 12 Mar 2009 14\:52\:16 +0100")
Organization: Oracle
References: <200903121258.51497@xxxxxx> <49B909CC.7080402@xxxxxxxxxxx> <200903121452.16419@xxxxxx>
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)
>>>>> "Michael" == Michael Monnerie <michael.monnerie@xxxxxxxxxxxxxxxxxxx> 
>>>>> writes:

Michael> I thought that it's a limitation of the Linux kernel in more
Michael> parts than just the filesystem (like block cache), that sector
Michael> sizes must be 512B.

Nope.  We've supported bigger sector sizes for years because of CD-ROMs,
mainframe DASD, etc.


Michael> If I had a 4K drive, would that be usable with XFS already?

# cat /sys/block/sdc/queue/hw_sector_size 
4096
# xfs_info /mnt
meta-data=/dev/sdc1              isize=256    agcount=16, agsize=5113686 blks
         =                       sectsz=4096  attr=0
data     =                       bsize=4096   blocks=81818976, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096  
log      =internal               bsize=4096   blocks=32768, version=2
         =                       sectsz=4096  sunit=1 blks, lazy-count=0
realtime =none                   extsz=4096   blocks=0, rtextents=0

-- 
Martin K. Petersen      Oracle Linux Engineering

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