That's a bit confusing. The OC manual state this
Code:
Trim operations are only affected at booting phase when the startup volume is mounted. Either specifying timeout, or completely disabling trim with 0, will not affect normal macOS running.
So, my understanding is that will only disable the "manual TRIM" during boot, but not completely disable TRIM inside normal macOS operation.
I don't know how often the OS will TRIM the SSD, and I personally haven't monitor it. But one of the OpenCore user told me that he did observed TRIM operation 2-3 days after boot (with SetApfsTrimTimeout=0). Assuming he know what he was doing. And he did that correctly. Then SetApfsTrimTimeout=0 shouldn't cause too many extra wear to the SSD.
In terminal run
Code:
log show --predicate "processID == 0" \--start $(date "+%Y-%m-01") | grep spaceman
This will print all related operations regarding trim and relevant disks.
I duplicated a folder on my desktop, filled with various files, and then deleted it. Then, I set the apfs trim value in config to 0, replaced the one in the OC EFI and rebooted. Running the above command produced these:
2022-11-08 22:18:58.716891+0200 0x44d Default 0x0 0 0 kernel: (apfs) spaceman_metazone_init:191: disk1 metazone for device 0 of size 2693771 blocks (encrypted: 0-1346885 unencrypted: 1346885-2693771)
2022-11-08 22:18:58.716900+0200 0x44d Default 0x0 0 0 kernel: (apfs) spaceman_datazone_init:625: disk1 allocation zone on dev 0 for allocations of 1 blocks starting at paddr 49315840
2022-11-08 22:18:58.716906+0200 0x44d Default 0x0 0 0 kernel: (apfs) spaceman_datazone_init:625: disk1 allocation zone on dev 0 for allocations of 2 blocks starting at paddr 12058624
2022-11-08 22:18:58.716913+0200 0x44d Default 0x0 0 0 kernel: (apfs) spaceman_datazone_init:625: disk1 allocation zone on dev 0 for allocations of 3 blocks starting at paddr 16023552
2022-11-08 22:18:58.716920+0200 0x44d Default 0x0 0 0 kernel: (apfs) spaceman_datazone_init:625: disk1 allocation zone on dev 0 for allocations of 4 blocks starting at paddr 42762240
2022-11-08 22:18:58.716982+0200 0x3d0 Default 0x0 0 0 kernel: (apfs) spaceman_scan_free_blocks:3172: disk1 scan took 0.000000 s (no trims)
2022-11-08 22:18:58.716990+0200 0x3d0 Default 0x0 0 0 kernel: (apfs) spaceman_scan_free_blocks:3154: disk1 scan took 0.000000 s, trims took 0.000000 s
2022-11-08 22:18:58.716995+0200 0x3d0 Default 0x0 0 0 kernel: (apfs) spaceman_scan_free_blocks:3156: disk1 0 blocks free in 0 extents,
where disk1 is the disk where the duplicate folder was deleted. So, I guess, regardless of the value used in SetApfsTrimTimeout in config, if you enable trim within macos with "sudo trimforce ebable", trim remains up and running.