On Fri, Dec 9, 2016 at 6:45 AM, Swâmi Petaramesh <sw...@petaramesh.org> wrote: > Hi Chris, thanks for your answer, > > On 12/09/2016 03:58 AM, Chris Murphy wrote: >> Can you check some bigger files and see if they've become fragmented? >> I'm seeing 1.4GiB files with 2-3 extents reported by filefrag, go to >> over 5000 fragments during dedupe. This is not something I recall >> happening some months ago. > > I have checked directories containing VM hard disks, that would be good > candidates. As they're backed up using full rsyncs, I wouldn't expect > them to be heavily fragmented (OTOH the whole BTRFS filesystem is lzo > compressed, and I believe that it may affect the number of extents > reported by filefrag...?) > > Anyway this is the number of fragments that I get for a bunch of VMS HD > files which are in the range from a couple GB to about 20 GB. > > The number of fragments reported by filefrag : 2907, 2560, 314, 10107 > > If compression has nothing to do with this, then this is heavy > fragmentation.
It's probably not that fragmented. Due to compression, metadata describes 128KiB extents even though the data is actually contiguous. And it might be the same thing in my case also, even though no compression is involved. -- Chris Murphy -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html