Where does trim begin?

I have a machine (a few, but) with Freebsd installed with ZFS on a single SSD.

If I were to reinstall FreeBSD (a different version) from the memstick, what happens to the SSD? Does TRIM only begin when ZFS in there? Or does the install process - the bit where it asks you if you are sure - use TRIM?
 
I'm not sure what the install process does. My FreeBSD daily driver is a VM and all the TRIMing is done on the Hypervisor.

For ZFS, to see what's set zpool get autotrim [pool]. You can zpool set autotrim=on|off [pool]. See zpool-set(8) along with zpoolprops(7)

On my ZFS server, which has the root on an SSD, I trim it just once a month. This gives the TRIM algorithms a better chance of operating efficiently by avoiding continuous trivial transactions, in favour of occasionally hoovering up large swathes of free disk blocks:
Code:
[sherman.133] $ zpool get autotrim zroot
NAME   PROPERTY  VALUE     SOURCE
zroot  autotrim  off       default
[sherman.134] $ sudo crontab -l | grep trim
5 3 2 * * /sbin/zpool trim zroot
[My root disks (mirror) are significantly over-provisioned, so I have no need to TRIM often.]
 
Back
Top