snappy should not mount with "discard" option
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)
Related branches
Changed in initramfs-tools-ubuntu-core (Ubuntu): | |
assignee: | nobody → Oliver Grawert (ogra) |
Changed in snappy: | |
status: | New → Fix Released |
Makes sense, go for it!