Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Hardware and Performance
»
SSD and Trim on current releases
« previous
next »
Print
Pages: [
1
]
Author
Topic: SSD and Trim on current releases (Read 5538 times)
rabievdm
Newbie
Posts: 30
Karma: 2
SSD and Trim on current releases
«
on:
August 14, 2020, 10:19:11 am »
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?
Logged
Patrick M. Hausen
Hero Member
Posts: 6818
Karma: 572
Re: SSD and Trim on current releases
«
Reply #1 on:
August 14, 2020, 11:19:58 am »
FreeBSD supports TRIM out of the box, no need to enable it.
You can check the status like this:
Code:
[Select]
root@opnsense:~ # tunefs -p /
[...]
tunefs: trim: (-t) enabled
[...]
Kind regards,
Patrick
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
banym
Sr. Member
Posts: 468
Karma: 31
Free Human Being, FreeBSD, Linux and Mac nerd
Re: SSD and Trim on current releases
«
Reply #2 on:
August 14, 2020, 11:46:55 am »
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.
Logged
Twitter: banym
Mastodon: banym@bsd.network
Blog:
https://www.banym.de
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: SSD and Trim on current releases
«
Reply #3 on:
August 14, 2020, 12:02:49 pm »
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
Logged
rabievdm
Newbie
Posts: 30
Karma: 2
Re: SSD and Trim on current releases
«
Reply #4 on:
August 20, 2020, 01:00:52 pm »
Thanks all, looks like we are golden:
tunefs -p /
tunefs: trim: (-t) enabled
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Hardware and Performance
»
SSD and Trim on current releases