[nzlug] 'Chunked' file systems?
D Moore
djm6202 at yahoo.co.nz
Fri Sep 1 11:44:44 NZST 2006
--- Robin Sheat <robin at kallisti.net.nz> wrote:
> On Friday 01 September 2006 09:07, Cliff Pratt
> wrote:
> > Rather than have a directory with a bunch of tiny
> files in, which causes
> > havoc with backups and copies and such,
[...snip..]
> Typically Linux (and UNIX)
> filesystems have handled this kind of thing well, I
> thought.
>
> [0] ext2 is probably good due to being low overhead,
> and the consistency
> hopefully being provided by the journalling FS below
> it
>
For better performance with large directories in
ext2/ext3 try switching directory indexing (htrees)
on.
You can do this by
Unmount the device ....
umount <device>
Add the dir_index feature to the file system ....
tune2fs -O dir_index <device>
Rebuild and reindex any directories which are larger
than a single disk block...
e2fsck -fD <device>
Remount the device
mount device
HTH YMMV
Cheers, David.
http://www.linuxshowcase.org/2001/full_papers/phillips/phillips_html/index.html
Send instant messages to your online friends http://au.messenger.yahoo.com
More information about the NZLUG
mailing list