I have done so previously with perhaps a dozen posts already in these very forums.
So, here it is again: I'm
Mark Lord, the guy behind the original Linux IDE, hdparm, parts of libata, and other stuff. Yes, I'm a Linux kernel hacker (full-time).
The current kernel.org kernels do NOT implement ATA TRIM. The main reason being, we still haven't agreed upon the best way to implement some form of automatic TRIM.
So, for now, one can run
wiper.sh periodically, whenever one feels their drives require TRIM. This can be better than the automatic GC firmware, because it gives you direct control over when it happens, as opposed to the firmware doing it at the exact instant of a power failure or real-time critical operation.
The
wiper.sh end-result should be better than what automatic GC can achieve, since we have more info about free blocks than GC does.
So, there is no ATA Trim in the kernel.
There is a git tree available, from which patches can be generated, to add TRIM to recent kernels. It doesn't work very well, and really slows down the system. Don't bother with that.
There is also now a git tree from Chris Mason, specifically to add TRIM for the experimental
btrfs filesystem. I don't recommend that, either, though it probably does work better than the earlier patches did.
Cheers
Bookmarks