4 ms·
The problem with encryption at that level is that trim no longer works as there are no longer any zeroed blocks - so writes are slower. Also there will be more
by rythie 13y ago
The problem with encryption at that level is that trim no longer works as there are no longer any zeroed blocks - so writes are slower. Also there will be more write applification as every write will cause a block to be erased.
- quotemstr 13y agoOf course it works. The filesystem knows which blocks the underlying storage device can forget and tell it using TRIM. That the content of the block was encrypted is irrelevant. TRIM is for putting blocks in some undefined state when no longer needed, not for zeroing them. See http://worldsmostsecret.blogspot.com/2012/04/how-to-activate-trim-on-luks-encrypted.html http://worldsmostsecret.blogspot.com/2012/04/how-to-activate...
- rythie 13y agoOh it looks like I'm a bit out of date, it took years but I can see they now support this. Of course this comes at the cost of being less secure (giving away the used block locations), though it shouldn't matter for this use case.