* RE: block size in XFS = hard coded constant? [not found] <1033336748.1088.4.camel@laptop.americas.sgi.com> @ 2002-09-30 8:55 ` L A Walsh 2002-09-30 12:07 ` Olaf Frączyk 2002-09-30 21:26 ` Nathan Scott 0 siblings, 2 replies; 3+ messages in thread From: L A Walsh @ 2002-09-30 8:55 UTC (permalink / raw) To: Stephen Lord; +Cc: Linux-Xfs, Linux-Kernel, Linux-Fsdevel Right -- I know it isn't the filesystem block size. In this day and age, it seems anachronistic. Given the 10% higher block density, not only would it yield higher capacities, but should yield higher transfer rates, no? I know it isn't a simple constant switch -- but I wouldn't want to switch constants since not all disks should be constrained to the same block size. Do other file systems have the same limitation? Are there any problems in the linux-kernel with non-512 byte blocks? -linda -----Original Message----- From: Stephen Lord [mailto:lord@sgi.com] Sent: Sunday, September 29, 2002 2:59 PM To: L A Walsh Cc: linux-xfs@oss.sgi.com Subject: Re: block size in XFS = hard coded constant? On Sun, 2002-09-29 at 16:28, L A Walsh wrote: > I wanted to use an alternate block size on my SCSI hard disk. > > I did a low-level reformat to use 4096 and got an additional 10.3% in hard > disk space. (17783MB -> 19627). > > I can't think of a reason why I'd want to have a 512 byte block when the > smallest allocation unit on a disk is 4K. > > However -- I ran into a hard coded reason with XFS -- it's hard coded to use > 512 byte blocks. > > Is there a reason for this? Am I missing something? Is it a bug, or is there > some reason why xfs can't handle different sized blocks? > > -l > Its pretty hard coded in the code that the disk is addressed in 512 byte sectors. Changing this has been discussed, but it is more complex than just changing a constant in the code. The original design while very scalable, did not consider sector sizes over than 512 as being a possibility. Note that this is not the filesystem block size, most metadata is 4K in size by default. Steve ^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: block size in XFS = hard coded constant? 2002-09-30 8:55 ` block size in XFS = hard coded constant? L A Walsh @ 2002-09-30 12:07 ` Olaf Frączyk 2002-09-30 21:26 ` Nathan Scott 1 sibling, 0 replies; 3+ messages in thread From: Olaf Frączyk @ 2002-09-30 12:07 UTC (permalink / raw) To: L A Walsh; +Cc: Stephen Lord, Linux-Xfs, Linux-Kernel, Linux-Fsdevel On Mon, 2002-09-30 at 10:55, L A Walsh wrote: > Right -- I know it isn't the filesystem block size. > > In this day and age, it seems anachronistic. Given the 10% higher block > density, not only would it yield higher capacities, but should yield higher > transfer rates, no? > > I know it isn't a simple constant switch -- but I wouldn't want to switch > constants since not all disks should be constrained to the same block size. > > Do other file systems have the same limitation? Are there any problems in the > linux-kernel with non-512 byte blocks? Hi, DVD-RAM (2048 bytes block size) works well in linux. I use ext2 for DVD-RAM. Regards, Olaf Fraczyk ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: block size in XFS = hard coded constant? 2002-09-30 8:55 ` block size in XFS = hard coded constant? L A Walsh 2002-09-30 12:07 ` Olaf Frączyk @ 2002-09-30 21:26 ` Nathan Scott 1 sibling, 0 replies; 3+ messages in thread From: Nathan Scott @ 2002-09-30 21:26 UTC (permalink / raw) To: L A Walsh; +Cc: Linux-Xfs, Linux-Kernel, Linux-Fsdevel Hello, On Mon, Sep 30, 2002 at 01:55:38AM -0700, L A Walsh wrote: > Right -- I know it isn't the filesystem block size. > > In this day and age, it seems anachronistic. Given the 10% higher block > density, not only would it yield higher capacities, but should yield higher > transfer rates, no? > > I know it isn't a simple constant switch -- but I wouldn't want to switch > constants since not all disks should be constrained to the same block size. > I have some code which implements an initial version of >512 byte sector sizes for the XFS data device - I was just chatting about this with Steve today. Initial benchmarking results seem to suggest that it does indeed perform slightly better. Support for this will likely be making its way into XFS in the future, but not right away. cheers. -- Nathan ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-09-30 21:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1033336748.1088.4.camel@laptop.americas.sgi.com>
2002-09-30 8:55 ` block size in XFS = hard coded constant? L A Walsh
2002-09-30 12:07 ` Olaf Frączyk
2002-09-30 21:26 ` Nathan Scott
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox