Re: defrag makes fragmentation worse

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

 



05:15, Chester wrote:
> Okay, this pretty much confirms that autodefrag makes defrag totally
> useless.. The above email was with autodefrag turned off..
> 
> With autodefrag on:
> 339 MB file
> initially 4 extents
> 
> btrfs fi defrag filename
> filefrag filename
> 
> about 900 extents
> 
> I did btrfs defrag two more times and ended up with 2048 extents
> 
> I attached the output of filefrag -v, which shows a pretty peculiar pattern.

This confirmed my speculation. I've fixed this bug a month ago, but
the patch hasn't hitted mainline.

You can try it out:

http://marc.info/?l=linux-btrfs&m=131495014823121&w=2

With this bug fixed, I think autodefrag won't be problematic.

--
Li Zefan
--
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