ZFS: Difference between revisions

272 bytes added ,  8 March 2022
Line 37: Line 37:
ZFS has two read caches:
ZFS has two read caches:
* ARC - this is enabled by default and uses half of your memory. This memory will be released if you approach out of memory.
* ARC - this is enabled by default and uses half of your memory. This memory will be released if you approach out of memory.
* L2ARC - you can enable additional caching by adding an L2ARC drive for ARC to overflow to. You will need approx. 20 MB of ram per GB of L2ARC assuming 4k record sizes.
* L2ARC - you can enable additional caching by adding an L2ARC drive for ARC to overflow to. You will need approx. 20 MB of RAM per GB of L2ARC assuming 4k record sizes.
For writes:
* SLOG - A separate log, typically an SSD backed mirror to write the ZFS intent log (ZIL).
 
In general, you will want to use an Intel Optane SSD for caching as they're supposed to last longer and have less latency.<br>
A 16GB Optane stick can be had for ~$12.


===ARC===
===ARC===