need to enable trim for SSD disk automatically

Bug #1244504 reported by Ming Lei
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Many filesystems support discard feature, and lots of SSD disks(even some usb storages)
support TRIM feature, but unfortunately Ubuntu does not enable it automatically.

With trim/discard enabled, SSD's lifetime can be increased and write performance
may be improved.

For common users, we can't expect them to know trim and enable it manually, so
it is better to let ubuntu do it automatically like below:

- check if the disk support trim by hdparm -I
- if the disk supports trim, either mount with '-o discard' or doing trim in background
periodically as suggested in below link[1], or other better way

[1], http://blog.neutrino.es/2013/howto-properly-activate-trim-for-your-ssd-on-linux-fstrim-lvm-and-dmcrypt/

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1244504

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
dino99 (9d9)
tags: added: bot-stop-nagging
Changed in linux (Ubuntu):
status: Incomplete → New
Revision history for this message
Ming Lei (tom-leiming) wrote :

Looks the log isn't needed, see below:

ubuntu@h4c:~$ mount | grep ext4
/dev/sda2 on / type ext4 (rw,errors=remount-ro)

Changed in linux (Ubuntu):
status: New → Confirmed
Changed in linux (Ubuntu):
importance: Undecided → Medium
tags: added: tasty
penalvch (penalvch)
tags: added: trusty
removed: tasty
Revision history for this message
penalvch (penalvch) wrote :
Changed in linux (Ubuntu):
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.