Originally posted by gigaplex
View Post
From what I can tell, TRIM should be fine to run after every delete, now that it's queued, but it depends on whether the controller behaves properly. If the controller notes which space is no longer used, waits for the percentage to reach fairly high, and then does the consolidation work, then it's perfectly fine. But if the controller does the consolidation work after every single TRIM command, it will be needlessly slow and wear out the drive instead. And there's no real way to tell how the controller behaves. Since you don't need TRIM until the blocks get fairly full, doing it every week is quite a safe bet (unless you constantly write and delete lots of data on it). It also looks like running fstrim after a Btrfs balance is a particularly good idea.
Comment