gabriel rosenkoetter on Tue, 5 Jun 2001 03:50:05 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] ELF Init section


On Tue, Jun 05, 2001 at 02:59:35AM -0400, Tim Peeler wrote:
> ext2 - sizes of 1, 2 and 4k can be specified when creating the fs,
> else it "determines" the best size, which is (in my experience) 
> almost always 4k.  I'm not sure about some of the new journaling
> filesystems, I gather that *BSD uses 512 bytes?  I think the minix
> filesystem and older versions of ext{1,2} did/can do 512.

Really?

I was legitimately under the impression that ext2fs used 512 byte
blocks (Unix historical decision, btw, so yes, it's what the BSD
fast file system and Berkeley log-structured file system as well as
the System V derivation of ffs, unix file system, all use).

Does anyone know the reasons for a decision to shift away from this
for ext2fs? Must one choose from 1, 2, or 4k sizes when creating a
new ext2fs partition, or can one specify arbitrary values?

(It's quite possible to create a new ffs, lfs, or ufs file system
with an entirely arbitrary block size other than 512 bytes, of
course, and this is frequently a good idea, particularly when the
file system will be backing a database system which will get a
speed gain from having blocks of some other size. I'd expect that
powers of 8 are probably recommended, though.)

       ~ g r @ eclipsed.net


______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug