How to check if TRIM is on
-
Hi
I run pfSense on a Virtual Machine and I want to see if TRIM is running. I believe it is on for ZFS by default but I am runing the community version so I dont think it is in ZFS.
- What commands can I run in the shell to see the TRIM status?
- Is the TRIM status viewable in the GUI?
So even if the default is that TRIM is on, I would like to check.
thanks
-
@shoulders CE supports ZFS.
Not sure if it's different when pfSense is running in a VM (I would think TRIM should be managed outside of the VM, not from insideā¦) but on my physical system, this command shows the trim status for the default zpool
# zpool get all pfSense | grep trim pfSense autotrim on localI just tested the same command in my CE VM and it returns the same


-
@luckman212 thanks, So that command worked, and yes mine is on ZFS. I thought only the paid version was on ZFS, but I am now updated.
So the autotrim is on for my ZFS, how can I check the underlying drive TRIM is supported? This is so I know the UNMAP/Discard commands are pushed upstream to the VMs host.
-
Been trying to research this a bit more.
rather than pipe to grep, this command is a more specific check for TRIM enablement on zfs
# zpool get autotrim NAME PROPERTY VALUE SOURCE pfSense autotrim on localAs for whether the hardware itself supports it, it depends on whether the device is NVMe or SATA, for SATA it would be
# smartctl -a /dev/ada0 | grep -i trim TRIM Command: Available, deterministic, zeroedNVMe uses different parameters, apparently if
DS_Mngmtappears inOptional NVM Commandsit indicates that the device does support TRIM# smartctl -x /dev/nvme0 | grep DS_Mngmt Optional NVM Commands (0x00df): Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat Timestmp Verify ^^^^^^^^ -
@shoulders said in How to check if TRIM is on:
I thought only the paid version was on ZFS
Plus exposes boot environments in the GUI and uses that for upgrades, though they technically exist via command line in CE I believe. ZFS has been the default for both, for several years.
It is possible to install pfSense and not use ZFS (maybe, one doesn't want the write amplification). However recall looking at that once and finding out TRIM was not that easy to set up in pfSense/FreeBSD for ufs, and that router ended up using ZFS.
The dashboard Disks widget will show the file system in use.
Privacy Policy · Cookie Policy