Dear All,
looking for some info to tuning and extend the life of my SSD disks I couldn't find any valuable information.
The documentation reports:
None of these make sense for me.
My knowledge of FreeBSD is still very limited and my knowledge of ZFS is even narrower.
On Linux I can enable fstrim through a cron task or systemd, I can also reduce swappiness and enable some other options on the fstab file, and this would be enough for a desktop use (in Linux).
So far I don't have my computer with me, but if my description is enough, maybe someone can already give me some advices.
I installed FreeBSD with ZFS-ON-ROOT over two 250 GB SSD in stripe mode, I already noticed that there is anything inside my fstab file hence the disks are handled somewhere else by ZFS. Maybe I heard from Allan Jude in a episode of BSDNow that ZFS is smart enough to handle SSD maintenance by itself, but I am not very sure.
I heard and read that you can tune ZFS for particular cases but mine user case is mainly a desktop use: web browsing, emailimg, compiling from time to time, graphic design, sometimes Blender and video editing.
Thanks in advance, I can share more info about my disks later in the evening.
tgl
looking for some info to tuning and extend the life of my SSD disks I couldn't find any valuable information.
The documentation reports:
vfs.zfs.vdev.trim_on_init - Control whether new devices added to the pool have the TRIM command run on them. This ensures the best performance and longevity for SSDs, but takes extra time. If the device has already been secure erased, disabling this setting will make the addition of the new device faster. Adjust this value at any time with sysctl(8).
vfs.zfs.l2arc_write_boost - Adds the value of this tunable to vfs.zfs.l2arc_write_max and increases the write speed to the SSD until evicting the first block from the L2ARC. This "Turbo Warmup Phase" reduces the performance loss from an empty L2ARC after a reboot. Adjust this value at any time with sysctl(8).
L2ARC is the second level of the ZFS caching system. RAM stores the primary ARC. Since the amount of available RAM is often limited, ZFS can also use cache vdevs. Solid State Disks (SSDs) are often used as these cache devices due to their higher speed and lower latency compared to traditional spinning disks. L2ARC is entirely optional, but having one will increase read speeds for cached files on the SSD instead of having to read from the regular disks. L2ARC can also speed up deduplication because a deduplication table (DDT) that does not fit in RAM but does fit in the L2ARC will be much faster than a DDT that must read from disk. Limits on the data rate added to the cache devices prevents prematurely wearing out SSDs with extra writes. Until the cache is full (the first block evicted to make room), writes to the L2ARC limit to the sum of the write limit and the boost limit, and afterwards limit to the write limit. A pair of sysctl(8) values control these rate limits. vfs.zfs.l2arc_write_max controls the number of bytes written to the cache per second, while vfs.zfs.l2arc_write_boost adds to this limit during the "Turbo Warmup Phase" (Write Boost).
None of these make sense for me.
My knowledge of FreeBSD is still very limited and my knowledge of ZFS is even narrower.
On Linux I can enable fstrim through a cron task or systemd, I can also reduce swappiness and enable some other options on the fstab file, and this would be enough for a desktop use (in Linux).
So far I don't have my computer with me, but if my description is enough, maybe someone can already give me some advices.
I installed FreeBSD with ZFS-ON-ROOT over two 250 GB SSD in stripe mode, I already noticed that there is anything inside my fstab file hence the disks are handled somewhere else by ZFS. Maybe I heard from Allan Jude in a episode of BSDNow that ZFS is smart enough to handle SSD maintenance by itself, but I am not very sure.
I heard and read that you can tune ZFS for particular cases but mine user case is mainly a desktop use: web browsing, emailimg, compiling from time to time, graphic design, sometimes Blender and video editing.
Thanks in advance, I can share more info about my disks later in the evening.
tgl