* LWN article: 4K disk sectors
@ 2009-03-12 11:58 Michael Monnerie
2009-03-12 13:10 ` Eric Sandeen
2009-03-14 15:26 ` Christoph Hellwig
0 siblings, 2 replies; 9+ messages in thread
From: Michael Monnerie @ 2009-03-12 11:58 UTC (permalink / raw)
To: xfs
http://lwn.net/SubscriberLink/322777/16380cde8af0a37e/
4K disk sectors coming 2011, might be interesting for devs to prepare
supporting it.
mfg zmi
--
// Michael Monnerie, Ing.BSc ----- http://it-management.at
// Tel: 0660 / 415 65 31 .network.your.ideas.
// PGP Key: "curl -s http://zmi.at/zmi.asc | gpg --import"
// Fingerprint: AC19 F9D5 36ED CD8A EF38 500E CE14 91F7 1C12 09B4
// Keyserver: wwwkeys.eu.pgp.net Key-ID: 1C1209B4
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: LWN article: 4K disk sectors
2009-03-12 11:58 LWN article: 4K disk sectors Michael Monnerie
@ 2009-03-12 13:10 ` Eric Sandeen
2009-03-12 13:52 ` Michael Monnerie
2009-03-14 15:26 ` Christoph Hellwig
1 sibling, 1 reply; 9+ messages in thread
From: Eric Sandeen @ 2009-03-12 13:10 UTC (permalink / raw)
To: Michael Monnerie; +Cc: xfs
Michael Monnerie wrote:
> http://lwn.net/SubscriberLink/322777/16380cde8af0a37e/
>
> 4K disk sectors coming 2011, might be interesting for devs to prepare
> supporting it.
Take a look at the mkfs.xfs man page:
-s sector_size
This option specifies the fundamental sector size of
the filesystem. The sector_size is specified either as
a value in bytes with size=value or as a base two loga-
rithm value with log=value. The default sector_size is
512 bytes. The minimum value for sector size is 512;
the maximum is 32768 (32 KiB). The sector_size must be
a power of 2 size and cannot be made larger than the
filesystem block size.
-Eric
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: LWN article: 4K disk sectors
2009-03-12 13:10 ` Eric Sandeen
@ 2009-03-12 13:52 ` Michael Monnerie
2009-03-12 14:17 ` Martin Steigerwald
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Michael Monnerie @ 2009-03-12 13:52 UTC (permalink / raw)
To: xfs
On Donnerstag 12 März 2009 Eric Sandeen wrote:
> Take a look at the mkfs.xfs man page:
>
> -s sector_size
> This option specifies the fundamental sector size of
> the filesystem. The sector_size is specified either as
> a value in bytes with size=value or as a base two loga-
> rithm value with log=value. The default sector_size is
> 512 bytes. The minimum value for sector size is 512;
> the maximum is 32768 (32 KiB). The sector_size must be
> a power of 2 size and cannot be made larger than the
> filesystem block size.
Ugh, I felt so good this morning, until you responded ... ;-)
I thought that it's a limitation of the Linux kernel in more parts than
just the filesystem (like block cache), that sector sizes must be 512B.
If I had a 4K drive, would that be usable with XFS already?
mfg zmi
--
// Michael Monnerie, Ing.BSc ----- http://it-management.at
// Tel: 0660 / 415 65 31 .network.your.ideas.
// PGP Key: "curl -s http://zmi.at/zmi.asc | gpg --import"
// Fingerprint: AC19 F9D5 36ED CD8A EF38 500E CE14 91F7 1C12 09B4
// Keyserver: wwwkeys.eu.pgp.net Key-ID: 1C1209B4
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: LWN article: 4K disk sectors
2009-03-12 13:52 ` Michael Monnerie
@ 2009-03-12 14:17 ` Martin Steigerwald
2009-03-12 15:03 ` Eric Sandeen
2009-03-12 14:23 ` Martin K. Petersen
2009-03-12 14:58 ` Eric Sandeen
2 siblings, 1 reply; 9+ messages in thread
From: Martin Steigerwald @ 2009-03-12 14:17 UTC (permalink / raw)
To: xfs
Am Donnerstag 12 März 2009 schrieb Michael Monnerie:
> On Donnerstag 12 März 2009 Eric Sandeen wrote:
> > Take a look at the mkfs.xfs man page:
> >
> > -s sector_size
> > This option specifies the fundamental sector size of
> > the filesystem. The sector_size is specified either as
> > a value in bytes with size=value or as a base two loga-
> > rithm value with log=value. The default sector_size is
> > 512 bytes. The minimum value for sector size is 512;
> > the maximum is 32768 (32 KiB). The sector_size must be
> > a power of 2 size and cannot be made larger than the
> > filesystem block size.
>
> Ugh, I felt so good this morning, until you responded ... ;-)
>
> I thought that it's a limitation of the Linux kernel in more parts than
> just the filesystem (like block cache), that sector sizes must be 512B.
> If I had a 4K drive, would that be usable with XFS already?
I have an USB stick with 2KB hardware sector size. It worked nicely when
using fdisk instead of cfdisk which only supports 512 byte sectors. Dunno
remember exactly which filesystems I tried back then.
And first I wondered why it had a partition in the first quarter of it and
then empty space. I thought it might have been a fake 1 GB stick, but
still just deleted the partition and made it size the whole disk in
cfdisk - well at least I thought I did. The Linux kernel complained about
writing beyond end of device while mkfsing, I think it was an ext3.
--
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: LWN article: 4K disk sectors
2009-03-12 14:17 ` Martin Steigerwald
@ 2009-03-12 15:03 ` Eric Sandeen
2009-03-14 19:10 ` Martin Steigerwald
0 siblings, 1 reply; 9+ messages in thread
From: Eric Sandeen @ 2009-03-12 15:03 UTC (permalink / raw)
To: Martin Steigerwald; +Cc: xfs
Martin Steigerwald wrote:
> Am Donnerstag 12 März 2009 schrieb Michael Monnerie:
>> On Donnerstag 12 März 2009 Eric Sandeen wrote:
>>> Take a look at the mkfs.xfs man page:
>>>
>>> -s sector_size
>>> This option specifies the fundamental sector size of
>>> the filesystem. The sector_size is specified either as
>>> a value in bytes with size=value or as a base two loga-
>>> rithm value with log=value. The default sector_size is
>>> 512 bytes. The minimum value for sector size is 512;
>>> the maximum is 32768 (32 KiB). The sector_size must be
>>> a power of 2 size and cannot be made larger than the
>>> filesystem block size.
>> Ugh, I felt so good this morning, until you responded ... ;-)
>>
>> I thought that it's a limitation of the Linux kernel in more parts than
>> just the filesystem (like block cache), that sector sizes must be 512B.
>> If I had a 4K drive, would that be usable with XFS already?
>
> I have an USB stick with 2KB hardware sector size. It worked nicely when
> using fdisk instead of cfdisk which only supports 512 byte sectors. Dunno
> remember exactly which filesystems I tried back then.
really? what kind of usb stick? I've never seen such a thing.
-Eric
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: LWN article: 4K disk sectors
2009-03-12 15:03 ` Eric Sandeen
@ 2009-03-14 19:10 ` Martin Steigerwald
0 siblings, 0 replies; 9+ messages in thread
From: Martin Steigerwald @ 2009-03-14 19:10 UTC (permalink / raw)
To: Eric Sandeen; +Cc: xfs
Am Donnerstag 12 März 2009 schrieb Eric Sandeen:
> Martin Steigerwald wrote:
> > Am Donnerstag 12 März 2009 schrieb Michael Monnerie:
> >> On Donnerstag 12 März 2009 Eric Sandeen wrote:
> >>> Take a look at the mkfs.xfs man page:
> >>>
> >>> -s sector_size
> >>> This option specifies the fundamental sector size
> >>> of the filesystem. The sector_size is specified either as a value
> >>> in bytes with size=value or as a base two loga- rithm value with
> >>> log=value. The default sector_size is 512 bytes. The minimum value
> >>> for sector size is 512; the maximum is 32768 (32 KiB). The
> >>> sector_size must be a power of 2 size and cannot be made larger
> >>> than the filesystem block size.
> >>
> >> Ugh, I felt so good this morning, until you responded ... ;-)
> >>
> >> I thought that it's a limitation of the Linux kernel in more parts
> >> than just the filesystem (like block cache), that sector sizes must
> >> be 512B. If I had a 4K drive, would that be usable with XFS already?
> >
> > I have an USB stick with 2KB hardware sector size. It worked nicely
> > when using fdisk instead of cfdisk which only supports 512 byte
> > sectors. Dunno remember exactly which filesystems I tried back then.
>
> really? what kind of usb stick? I've never seen such a thing.
Its a stick I got from a customer.
shambhala:~> tail -fn0 /var/log/syslog
Mar 14 20:07:53 localhost kernel: usb 2-4: new high speed USB device using
ehci_hcd and address 18
Mar 14 20:07:53 localhost kernel: usb 2-4: configuration #1 chosen from 1
choice
Mar 14 20:07:53 localhost kernel: scsi16 : SCSI emulation for USB Mass
Storage devices
Mar 14 20:07:53 localhost kernel: usb 2-4: New USB device found,
idVendor=17ef, idProduct=3815
Mar 14 20:07:53 localhost kernel: usb 2-4: New USB device strings: Mfr=1,
Product=2, SerialNumber=3
Mar 14 20:07:53 localhost kernel: usb 2-4: Product: Flash Disk
Mar 14 20:07:53 localhost kernel: usb 2-4: Manufacturer:
Mar 14 20:07:53 localhost kernel: usb 2-4: SerialNumber: ABCDEF1234000423
Mar 14 20:07:53 localhost kernel: usb-storage: device found at 18
Mar 14 20:07:53 localhost kernel: usb-storage: waiting for device to
settle before scanning
Mar 14 20:07:58 localhost kernel: usb-storage: device scan complete
Mar 14 20:07:58 localhost kernel: scsi 16:0:0:0: Direct-Access
Flash Disk 5.00 PQ: 0 ANSI: 2
Mar 14 20:07:58 localhost kernel: sd 16:0:0:0: [sdb] 504832 2048-byte
hardware sectors: (1.03 GB/986 MiB)
Mar 14 20:07:58 localhost kernel: sd 16:0:0:0: [sdb] Write Protect is off
Mar 14 20:07:58 localhost kernel: sd 16:0:0:0: [sdb] Mode Sense: 0b 00 00
08
Mar 14 20:07:58 localhost kernel: sd 16:0:0:0: [sdb] Assuming drive cache:
write through
Mar 14 20:07:58 localhost kernel: sd 16:0:0:0: [sdb] 504832 2048-byte
hardware sectors: (1.03 GB/986 MiB)
Mar 14 20:07:58 localhost kernel: sd 16:0:0:0: [sdb] Write Protect is off
Mar 14 20:07:58 localhost kernel: sd 16:0:0:0: [sdb] Mode Sense: 0b 00 00
08
Mar 14 20:07:58 localhost kernel: sd 16:0:0:0: [sdb] Assuming drive cache:
write through
Mar 14 20:07:58 localhost kernel: sdb: sdb1
Mar 14 20:07:58 localhost kernel: sd 16:0:0:0: [sdb] Attached SCSI
removable disk
Mar 14 20:07:58 localhost kernel: sd 16:0:0:0: Attached scsi generic sg2
type 0
^C
Hmmm, it appears to be from Lenovo.
shambhala:~> lsusb | grep USB
Bus 002 Device 018: ID 17ef:3815 Lenovo ChipsBnk 2GB USB Stick
But its definately not 2 GB... strange. Its branded for the customer, no
manufacturer logo on it.
--
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: LWN article: 4K disk sectors
2009-03-12 13:52 ` Michael Monnerie
2009-03-12 14:17 ` Martin Steigerwald
@ 2009-03-12 14:23 ` Martin K. Petersen
2009-03-12 14:58 ` Eric Sandeen
2 siblings, 0 replies; 9+ messages in thread
From: Martin K. Petersen @ 2009-03-12 14:23 UTC (permalink / raw)
To: Michael Monnerie; +Cc: xfs
>>>>> "Michael" == Michael Monnerie <michael.monnerie@is.it-management.at> 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
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: LWN article: 4K disk sectors
2009-03-12 13:52 ` Michael Monnerie
2009-03-12 14:17 ` Martin Steigerwald
2009-03-12 14:23 ` Martin K. Petersen
@ 2009-03-12 14:58 ` Eric Sandeen
2 siblings, 0 replies; 9+ messages in thread
From: Eric Sandeen @ 2009-03-12 14:58 UTC (permalink / raw)
To: Michael Monnerie; +Cc: xfs
Michael Monnerie wrote:
> On Donnerstag 12 März 2009 Eric Sandeen wrote:
>> Take a look at the mkfs.xfs man page:
>>
>> -s sector_size
>> This option specifies the fundamental sector size of
>> the filesystem. The sector_size is specified either as
>> a value in bytes with size=value or as a base two loga-
>> rithm value with log=value. The default sector_size is
>> 512 bytes. The minimum value for sector size is 512;
>> the maximum is 32768 (32 KiB). The sector_size must be
>> a power of 2 size and cannot be made larger than the
>> filesystem block size.
>
> Ugh, I felt so good this morning, until you responded ... ;-)
>
> I thought that it's a limitation of the Linux kernel in more parts than
> just the filesystem (like block cache), that sector sizes must be 512B.
> If I had a 4K drive, would that be usable with XFS already?
Other layers need work, yes, but by and large xfs should be ready when
the rest of the kernel & linux infastructure catches up.
-Eric
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: LWN article: 4K disk sectors
2009-03-12 11:58 LWN article: 4K disk sectors Michael Monnerie
2009-03-12 13:10 ` Eric Sandeen
@ 2009-03-14 15:26 ` Christoph Hellwig
1 sibling, 0 replies; 9+ messages in thread
From: Christoph Hellwig @ 2009-03-14 15:26 UTC (permalink / raw)
To: Michael Monnerie; +Cc: xfs
On Thu, Mar 12, 2009 at 12:58:51PM +0100, Michael Monnerie wrote:
> http://lwn.net/SubscriberLink/322777/16380cde8af0a37e/
>
> 4K disk sectors coming 2011, might be interesting for devs to prepare
> supporting it.
Fortunately there's not just the PC world. 4k is the standard sector
size of most common mainframe DASD so the Linux filesystems including
xfs deal with it very well. The real issue are bootloader and anything
involving the DOS partitioning scheme.
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-03-14 19:10 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-12 11:58 LWN article: 4K disk sectors Michael Monnerie
2009-03-12 13:10 ` Eric Sandeen
2009-03-12 13:52 ` Michael Monnerie
2009-03-12 14:17 ` Martin Steigerwald
2009-03-12 15:03 ` Eric Sandeen
2009-03-14 19:10 ` Martin Steigerwald
2009-03-12 14:23 ` Martin K. Petersen
2009-03-12 14:58 ` Eric Sandeen
2009-03-14 15:26 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox