SSD and Trim on current releases

Started by rabievdm, August 14, 2020, 10:19:11 AM

Previous topic - Next topic
I was looking through the forums and documentation and whilst I could find references to TRIM on SSD's I couldn't really work out how to enable it?

Does it get set automatically or if not where should I go and set it?

FreeBSD supports TRIM out of the box, no need to enable it.

You can check the status like this:

root@opnsense:~ # tunefs -p /
[...]
tunefs: trim: (-t)                                         enabled
[...]


Kind regards,
Patrick
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Btw. Trim should only make most sense with highly frequented storage.
Should not be the case with "normal" firewall setup.

Nevertheless it is supported by default.
Twitter: banym
Mastodon: banym@bsd.network
Blog: https://www.banym.de

If the disk allows it OPNsense will try to enable it. If you don't want it, you need to edit /etc/fstab and add "# notrim" at the end of the disk line.


Cheers,
Franco

Thanks all, looks like we are golden:

tunefs -p /
tunefs: trim: (-t)                                         enabled