Hi, Why are all values under kstat.zfs.zroot.misc.iostats 0? Does this mean that trim is not working for my zroot pool? Or is it just misreported? # zpool status zroot pool: zroot state: ONLINE scan: scrub repaired 0B in 00:01:31 with 0 errors on Fri Sep 24 03:49:20 2021 config: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 ada0p3 ONLINE 0 0 0 ada1p3 ONLINE 0 0 0 errors: No known data errors # camcontrol identify ada0 | grep -i trim Data Set Management (DSM/TRIM) yes # camcontrol identify ada1 | grep -i trim Data Set Management (DSM/TRIM) yes # sysctl kstat.zfs.zroot.misc.iostats kstat.zfs.zroot.misc.iostats.simple_trim_bytes_failed: 0 kstat.zfs.zroot.misc.iostats.simple_trim_extents_failed: 0 kstat.zfs.zroot.misc.iostats.simple_trim_bytes_skipped: 0 kstat.zfs.zroot.misc.iostats.simple_trim_extents_skipped: 0 kstat.zfs.zroot.misc.iostats.simple_trim_bytes_written: 0 kstat.zfs.zroot.misc.iostats.simple_trim_extents_written: 0 kstat.zfs.zroot.misc.iostats.autotrim_bytes_failed: 0 kstat.zfs.zroot.misc.iostats.autotrim_extents_failed: 0 kstat.zfs.zroot.misc.iostats.autotrim_bytes_skipped: 0 kstat.zfs.zroot.misc.iostats.autotrim_extents_skipped: 0 kstat.zfs.zroot.misc.iostats.autotrim_bytes_written: 0 kstat.zfs.zroot.misc.iostats.autotrim_extents_written: 0 kstat.zfs.zroot.misc.iostats.trim_bytes_failed: 0 kstat.zfs.zroot.misc.iostats.trim_extents_failed: 0 kstat.zfs.zroot.misc.iostats.trim_bytes_skipped: 0 kstat.zfs.zroot.misc.iostats.trim_extents_skipped: 0 kstat.zfs.zroot.misc.iostats.trim_bytes_written: 0 kstat.zfs.zroot.misc.iostats.trim_extents_written: 0 thanks Michal
It looks like you don't have autotrim enabled (zpool get autotrim zroot) nor did you run zpool trim manually.
(In reply to Yuri from comment #1) You are right. Thanks.