Home » Questions » Computers [ Ask a new question ]

When does Linux do SSD garbage collection?

When does Linux do SSD garbage collection?

I'm trying to get an understanding of when my computer does garbage collection and frees up previously used blocks on the SSD.

Asked by: Guest | Views: 191
Total answers/comments: 1
Guest [Entry]

"There is a new article from Anand with more info about SSD magic :) I'd advise you to read it too. TRIM is explained in more detail there. In general, it says that trim is good, but:

...Unfortunately, no drives properly support TRIM yet...

That support is only in beta firmware at the moment. So, if both your OS and controller firmware support TRIM, then it will work approximately this way: your OS will send that command to the SSD controller once some file is permanently deleted. Whether it will be actually trimmed at that moment or some other time depends entirely on your drives firmware implementation.

If your OS doesn't support TRIM, then there is a chance that you can get a wiper tool from your drive manufacturer. You can read how that works here.

If your drive controller doesn't support TRIM, then maybe you can get an update or some beta version of it's firmware.

Hope that helps."