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

Re: Debian 8.1 ext4 directory sizes

On Tue, Nov 10, 2015 at 04:36:56PM +0100, Thomas Schmitt wrote:
> Hi,
> Eduardo M KALINOWSKI wrote:
> > Yes, and also of its predecessors ext2 and ext3.
> Thanks for the info.
> As i failed to find it myself: Do you know a link or man page
> where this is specified ?
> After all it imposes massive performance penalties which made
> me suspicious on the first hand. Does nobody else complain ?

You have several options:

1. Enable the following features on your ext4 fs:

- dir_index
- extent

these are probably both on by default.

2. When you make gigantic directories and later empty them,
   delete them. Re-create them when you need them.

3. Use btrfs or ZFS (these both have advantages and
   disadvantages and are not to be entered into lightly.

The size of the directory inode structures is not excessive; you
really need that to handle lots of files, and it dynamically
grows. The fact that it does not dynamically shrink is,
generally, a feature.


Reply to: