So I've been reading that for SSDs, weekly TRIM is enabled by default only for some brands like Samsung and Intel,but not others like Hynix. What's the rationale for this? Should I not enable TRIM on SSDs by other brands because performance/lifespan may be negatively affected?
Ubuntu – Why does Ubuntu enable TRIM for certain brands only
ssdtrim
Related Question
- Ubuntu – the recommended way to empty a SSD
- Ubuntu – Do you recommend LUKS encryption on a SSD (TRIM support)
- Ubuntu – How to set up SSD raid and TRIM support
- Ubuntu – Does the mpt2sas driver support TRIM
- Ubuntu – On Ubuntu 16.04, with Samsung 850 EVO SSD, is any post configuration needed
- Ubuntu – Is TRIM enabled on the Ubuntu 18.04 installation
Best Answer
When it comes to low-level Disk I/O such as TRIM, Ubuntu doesn't have much control. It's really up to the Linux Kernel and the SSD manufacturer. Before running TRIM you have to make sure your SSD supports it or it could become an expensive paperweight.
To find out for sure use:
When
DISC-GRAN DISC-MAX
columns contain non-zero values it is safe to use TRIM. If you are unsure which disk is which in this display you can get the model name and number using:So in this case the SSD is a Samsung Pro 960 which does indeed support TRIM command.
For more details see this Arch Linux article.