Re: directory defrag

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

 



On Tue, Apr 14, 2015 at 07:37:17AM +0000, Russell Coker wrote:
> The current defragmentation options seem to only support defragmenting named 
> files/directories or a recursive defragmentation of files and directories.
> 
> I'd like to recursively defragment directories.  One of my systems has a large 
> number of large files, the files are write-once and read performance is good 
> enough.  However performance of "ls -al" is often very poor, presumably due to 
> metadata fragmentation.

Ie. the directory metadata in the b-tree. That's possible, but not all
of the code is there. So fare only whole-tree defragmentation is
implemented, ie. the extent tree or any subvolume tree. We'd have to
extend the defrag api to take a key range and then use it to span the
directory key range.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux