snappy should not mount with "discard" option

Bug #1479711 reported by Oliver Grawert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
Undecided
Unassigned
initramfs-tools-ubuntu-core (Ubuntu)
Fix Released
Undecided
Oliver Grawert

Bug Description

the initrd on snappy originates from the phone where we usually have MMC devices that have TRIM properly implemented.
for the sake of power saving we decided to not make use of the fstrim cronjob on phones (which is the userspace alternative to implement TRIM) but to rely on the controller of the MMC to do the right thing.

snappy (unlike a phone install) is usually run from SD cards (arm) or USB keys (x86) and is also usually not suspended for long periods (so that cron could not run the fstrim job).
Most SD cards also implement TRIM as a no-op which is why we should drop discard from the mount options here and fully rely on userspace. (and according fstrim upstream, the userspace variant also gains us better performance)

Oliver Grawert (ogra)
Changed in initramfs-tools-ubuntu-core (Ubuntu):
assignee: nobody → Oliver Grawert (ogra)
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Makes sense, go for it!

Revision history for this message
Oliver Grawert (ogra) wrote :

do we want this backported to 15.04 ?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package initramfs-tools-ubuntu-core - 0.7.9

---------------
initramfs-tools-ubuntu-core (0.7.9) wily; urgency=medium

  * drop "discard" from mount options of the writable partition, we want to
    use fstrim instead (LP: #1479711).

 -- Oliver Grawert <email address hidden> Mon, 24 Aug 2015 13:54:01 +0200

Changed in initramfs-tools-ubuntu-core (Ubuntu):
status: New → Fix Released
Michael Vogt (mvo)
Changed in snappy:
status: New → Fix Released
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.