The Following 6 Users Say Thank You to Fuzzillogic For This Useful Post: | ||
|
2017-10-20
, 14:43
|
Posts: 479 |
Thanked: 1,284 times |
Joined on Jan 2012
@ Enschede, The Netherlands
|
#2
|
[nemo@Sailfish ~]$ cat /sys/block/mmcblk0/queue/discard_granularity 524288
|
2017-10-20
, 17:49
|
Posts: 248 |
Thanked: 1,142 times |
Joined on Dec 2014
@ Earth
|
#3
|
I'm wary to experiment with this on my JP1, as this is my only and primary mobile, and I don't want to end up with the entire flash storage being trimmed, leaving me with exactly 0 bits of data on the device…
The Following 4 Users Say Thank You to DrYak For This Useful Post: | ||
|
2017-10-20
, 18:51
|
Posts: 479 |
Thanked: 1,284 times |
Joined on Jan 2012
@ Enschede, The Netherlands
|
#4
|
[root@Sailfish nemo]# /sbin/fstrim -a -v /opt/alien/media/sdcard/1d87f0ae-05cb-4eb5-a04a-c0a7e0455980: 0 B (0 bytes) trimmed /opt/alien/home: 115.9 MiB (121470976 bytes) trimmed /drm: 0 B (0 bytes) trimmed /persist: 0 B (0 bytes) trimmed /var/systemlog: 0 B (0 bytes) trimmed /: 115.9 MiB (121470976 bytes) trimmed
Linux supports this since many years, and Btrfs has a mount option to enable it.
On the Jolla1, this does not appear to be enabled:
edit: not sure whether discard_zeroes_data actually means TRIM is supported. On my two home machines with SSD with TRIM support it also says "0", even though an "fstrim" actually seems to do something. On Ubuntu, fstrim is scheduled to run once a week by default.
Questions:
Last edited by Fuzzillogic; 2017-10-15 at 21:49.