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

Re: reading an empty directory after reboot is very slow

On 2015-04-14 10:55:12 -0600, Bob Proulx wrote:
> Other file systems such as xfs designed for large files and large
> numbers of files DO shrink when files are removed.  That is one of the
> reasons why xfs is recommended for industrial strength use.  It was
> designed to handle those kinds of workloads.  However that means that
> it must spend time when files are deleted to clean everything up.
> Everything has a cost.  But xfs is one of the file systems that do
> shrink directories when files are deleted.

This could be done efficiently, for instance by delaying the shrink
operation (with mechanisms similar to cache write back), so that the
time spent for the clean up is guaranteed to remain small (or spent
when there is nothing else to do).

Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply to: