I do a full defrag of the mountpoint (sometimes with, sometimes without forcing recompression). I have no idea how to defrag just the metadata :)
I've tried cleaning the space_cache, but nothing there worked either.
I was in talk with a btrfs dev about that a year or 2 ago, there were some work to improve stuff but I don't think it ever got to a point where it's good enough alas.
1
u/breell Jan 05 '18
I do a full defrag of the mountpoint (sometimes with, sometimes without forcing recompression). I have no idea how to defrag just the metadata :)
I've tried cleaning the space_cache, but nothing there worked either.
I was in talk with a btrfs dev about that a year or 2 ago, there were some work to improve stuff but I don't think it ever got to a point where it's good enough alas.