Re: Ext2 defragmentation

Theodore Y. Ts'o (tytso@mit.edu)
Sat, 13 Nov 1999 15:21:35 -0500


Date: Sat, 13 Nov 1999 09:46:46 +0100 (MET)
From: R.E.Wolff@BitWizard.nl (Rogier Wolff)

Theodore Y. Ts'o wrote:
> you have lots of large files, since large files that are bigger than a
> block group (8 megs or 32 megs) have to be non-contiguous by the nature
> of the ext2 filesystem.

You mean you're still using 2k blocks? I use 4k blocks on filesystems
larger than 4G. Noticably faster mount times and fsck times. (ok, it
may be a bit less efficient, but larger than 4G means that i'm talking
about larger disks..... And I'm spending at least 400M in "reserved
for superuser", and chances are that I'm using less than 100k files on
such a filesystem, so the block-size roundoff is also going to be less
than 400M....)

8 meg block groups imply you're using 1k blocks. 32 meg block groups
imply you're using 4k blocks. E2fsprogs 1.18 automatically creates
filesystems with 4k blocks when making large filesystems, but most folks
have filesystems created with earlier versions of e2fsprogs which used
1k blocks by default, and so there are many filesystems using 1k block
sizes out there. That's why I said 8 megs or 32 megs.....

- Ted

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/