Can I enable discards on a LUKS-encrypted ssd drive in RHEL6 (and do I need to)?
- by Dan Nestor
I have a RHEL 6.4 workstation, running on a LUKS-encrypted LV residing on a SSD.
I found RedHat documentation stating that dm_crypt does not currently support TRIM passthrough, however I also found other sources that state the opposite (albeit for other distributions) and even that discards are not needed for recent SSD drives which use some sort of automatic garbage collection. So:
1) Can I enable TRIM/discards with my setup?
2) Do I need to, for optimal disk performance?
Thanks for your thoughts.