Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I was surprised to find that the discard option still isn't added automatically to my fstab, even though I have an SSD. Thus I have to follow these instructions to add it.

Why doesn't the installer do this automatically? Is there some hidden drawback to using discard? Are there issues reliably detecting SSDs?

share|improve this question

1 Answer 1

My answer here mentions the why, but for the specific reasons to not enable it by default, comes down to several important factors that affect different hardware, hardware configurations and software configurations but they basically boil down to:

  • What file system to use? (Not all filesystems support TRIM. In fact, only a small group of filesystems support TRIM including ext4 and btrfs)

  • What SSD to use? (Some are not good with TRIM. Some don't need TRIM)

  • Will RAID be used? (There are several RAID issues when using TRIM)

  • What performance impact will it have? (Negative, Positive. This varies depending on SSD, hardware, RAID configuration...)

So I guess with all of this doubts, the option for one to test it out ourselves is left with the manual approach and to see if there is an actual benefit. I can say that the benefit in an Intel 520 with and without Trim is very little, at least in my case. But still, with all of this performance issues, enabling automatic TRIM even will all of the hype about it would still be a bad idea because for some users it will be good, but for others it could be very bad.

share|improve this answer
    
It's also mentioned in the docs: This is useful for SSD devices [...] but it is off by default until sufficient testing has been done –  medigeek Oct 1 '12 at 19:38
1  
@medigeek - Correct, until a lot of testing. The "problem" with Ubuntu if we can call it that, is that it is a more end user distro than others, so it has to try to help as many users as possible without creating problems for them, server or desktop. Activating this feature could be good to some like me, but bad to others as a friend once told me about a corrupt RAID that happened to him. My thinking is that, with the passing of Linux kernel versions and the advances of Ubuntu and open source drivers, we will be able to see this feature in automatic mode depending on the hardware. –  Luis Alvarado Oct 1 '12 at 21:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.