To add ZIL (ZFS Intent Log) write cache and L2ARC (Level 2 Adapter) read cache SSD devices in FreeNAS, you can follow these steps:
Make sure that you have the SSD devices that you want to use as cache already connected to your FreeNAS system.
Open the FreeNAS web interface and go to the "Storage" tab.
Click on the "ZFS Volume Manager" icon.
From the list of ZFS pools, select the pool for which you want to add cache devices.
Click on the "Edit" button next to the pool name.
In the "Cache Devices" section, click on the "Add" button.
Select the SSD devices that you want to use as cache from the list of available devices.
Click on the "Save" button to apply the changes.
You may need to reboot the system for the changes to take effect.
Note: It is recommended to use SSD devices with a capacity of at least 64 GB for cache devices. Larger cache devices can improve performance, but keep in mind that using too large of a cache device can also reduce the overall efficiency of the cache.