Does Trisquel 8 have TRIM on by default? And does it matter?
- Vous devez vous identifier ou créer un compte pour écrire des commentaires
Hey everyone,
So, I noticed my SSD was getting a little filled up (only 70GB free in 256GB) and decided to read about how much it would affect the performance of my machine.
From what I understand YES, SSD shouldn't be left nearly full otherwise it affects performance, due to the way SSD works. With that in mind I run:
sudo hdparm -Tt /dev/sda
And got this:
/dev/sda:
Timing cached reads: 3644 MB in 2.00 seconds = 1824.91 MB/sec
Timing buffered disk reads: 798 MB in 3.01 seconds = 265.42 MB/sec
After that I run:
sudo fstrim -v /
And got this:
/: 83,2 GiB (89301729280 bytes) trimmed
However running the previous command again:
sudo hdparm -Tt /dev/sda
gave me the same result as before. So, does it even matter if we use TRIM or not?
Also, I read that Ubuntu 14.04 has TRIM on by default. Shouldn't Trisquel 8 have it be default too? And if so, why did it allow me to TRIM 83,2GB when I run it manually?
I have a vague memory of Libreboot systems having some issues with TRIM and SSD... But I can't find it anywhere online. Maybe I am mistaken. If someone knows about that I will be thankful too.
Thanks!!
Found it
https://libreboot.org/docs/gnulinux/encrypted_parabola.html
However I am unsure as if running the command I did (sudo fstrim -v /) actually raises any security issues or not... Or if it was even beneficial from a performance standpoint given that I got the same results in sudo hdparm
Look at /etc/fstab. As far as I understand, if "discard" is in the fourth column, then TRIM is sent to the disk every time a block is freed on the partition. It is not a default option of 'mount' and I do not think Trisquel's default is to use that option. Indeed, some users report performance losses, e.g., https://patrick-nagel.net/blog/archives/337
I had already checked and /etc/fstab doesn't have "discard" there. I just forgot to mention that in my post. Actually nor seeing it there was the motive for my post. Thanks for the link, it clarified to me that I can just every now and then run my fstrim command and it will be good to go.
Thanks!
- Vous devez vous identifier ou créer un compte pour écrire des commentaires

