lkml.org 
[lkml]   [1998]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: WEIRD ext2fs dir size BUG?
From
Alan Cox <alan@lxorguk.ukuu.org.uk> writes:
> > ... you can always rmdir and mkdir the directory to
> > reclaim the extra blocks.
>
> For some things like news servers an e2fsdefrag or e2fsck option to
> compact directories might be useful.

In the general case, if the number of files in a directory has previously
hit some high-water mark, there's a chance it'll happen again, and having
that much contiguous space allocated to the directory should be a win.

Certainly, there may be cases of spewage causing really huge directories,
and if steps have been made to prevent that happening again it would be
useful to wind them back to a more reasonable size.

What would be useful for news servers would be an option to defrag
directories only, to thereby improve performance, and not bother with
files that are probably going to get expired soon anyway.

--
Anthony DeBoer <adb@onramp.ca>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:41    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site