how to see if TRIM is supported?

Started by fadern, September 12, 2023, 08:50:28 PM

Previous topic - Next topic
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.
Intel i7-8550U - Intel I211 - RAM 16GB - NVMe 120Gb
Intel i7-5550U - Intel I211 - RAM 8GB - NVMe 50Gb

# 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

Thank you!
It worked and I'm using the predefined cronjob.
Intel i7-8550U - Intel I211 - RAM 16GB - NVMe 120Gb
Intel i7-5550U - Intel I211 - RAM 8GB - NVMe 50Gb