Re: ext2fs enhacement/fix [re: shrinking directories]

Chris Wedgwood (chris@cybernet.co.nz)
Thu, 16 Jul 1998 18:44:29 +1200


On Thu, Jul 16, 1998 at 12:33:50AM -0400, Chad C Giffin wrote:

> Although it is really not a problem for most that directory files do not
> shrink on removal of directory entries, it still is a problem for some and
> should not be ignored IMO.
>
> I'd like to propose a solution that is not too complicated.
>
> The solution is simple. When a file system is found idle, a thread wakes
> up and systematicly house cleans the directory files. When the file
> system becomes active, the thread either
>
> 1. stops
> or 2. works on another directory that is not being accessed
> while operating at a very low priority

How does this scale to large machines like new-servers (where large
directories can indeed be an issue) where you might have 80GB of disk and
several million directories?

Oh, and such machines are _never_ idle. Not even close.

-cw

-
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.altern.org/andrebalsa/doc/lkml-faq.html