OPNsense Forum

English Forums => Hardware and Performance => Topic started by: fadern on September 12, 2023, 08:50:28 PM

Title: how to see if TRIM is supported?
Post by: fadern on September 12, 2023, 08:50:28 PM
Hi,
Do any of you know how to see if the drive supports TRIM?
I have tried hdparm and lsblk but they are not found.
Title: Re: how to see if TRIM is supported?
Post by: franco on September 12, 2023, 09:05:11 PM
# camcontrol identify ada0 | grep TRIM
Data Set Management (DSM/TRIM) yes

The system should try to use tunefs to set trim automatically. I think for ZFS it's a separate option, either using autotrim property or using the zfs trim cronjob for more info see:

https://openzfs.github.io/openzfs-docs/man/master/7/zpoolprops.7.html <- autotrim property
https://docs.opnsense.org/manual/settingsmenu.html#cron <- "ZFS pool trim" cron job description


Cheers,
Franco
Title: Re: how to see if TRIM is supported?
Post by: fadern on September 12, 2023, 09:25:07 PM
Thank you!
It worked and I'm using the predefined cronjob.