Use it when configuring, checking or troubleshooting L2ARC in ZFS.
L2ARC
L2ARC stores secondary copies of data that also exist in the pool and is populated from ARC according to ZFS policy. It can benefit read-heavy workloads whose reusable working set exceeds ARC, but it consumes memory for metadata and adds fill I/O. It is not a write cache, not redundancy and not a substitute for adding RAM when RAM is the actual constraint.
1. L2ARC extends ARC onto SSD.
2. Helps only if working set > RAM and reads repeat.
3. Costs RAM for headers.
4. Persistent across reboots in OpenZFS 2.0+.
5. Add RAM first.
ARC evictions → L2ARC SSD → read hits
Context & applicabilityCommon mistakes · platform/version boundaries
An L2ARC hit shows a secondary cached copy satisfied that read, but it does not show the original pool block is healthy or that L2ARC improves total workload performance.
Suspicious evidence: L2ARC is added to a RAM-starved host, hit ratio remains negligible, feed I/O competes with workloads, or cache-device presence is mistaken for data protection.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
application read → ARC miss → L2ARC lookup → hit return OR pool/vdev read → checksum → cache population
Healthy evidence: L2ARC serves meaningful reusable misses, reduces backend pressure without harmful memory/feed overhead, and workload latency improves under controlled comparison.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- L2ARC ≠ ARC/RAM.
- L2ARC ≠ write cache.
- L2ARC ≠ redundancy or backup because cached blocks also live in the pool.
- More L2ARC ≠ automatically faster; metadata and feed overhead can hurt constrained systems.
zpool status— cache vdevarc_summary | grep -A10 L2ARC— L2ARC hitszpool add <pool> cache /dev/nvme0n1— add L2ARC
ReferenceImportant terms & boundaries2 sections · depth on demand
Topology
An L2ARC hit shows a secondary cached copy satisfied that read, but it does not show the original pool block is healthy or that L2ARC improves total workload performance.
and state what the evidence does not show.
In depth
L2ARC is a second-level read cache on fast devices (SSD/NVMe) that holds blocks evicted from the in-RAM ARC. It only helps when the working set is larger than RAM but fits in the L2ARC, and when reads repeat.
Each cached block needs a header in ARC (roughly 70–100 bytes per block), so a large L2ARC with small records consumes RAM that the ARC itself could use. Add RAM first; add L2ARC when arc_summary shows a low hit rate with a working set clearly bigger than RAM. Since OpenZFS 2.0, L2ARC contents survive reboots (persistent L2ARC).
zpool add tank cache nvme-Samsung_XXXX
arc_summary | grep -A5 L2ARC
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in ZFS → L2ARC. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://openzfs.github.io/openzfs-docs/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
ZFS → L2ARC ZFS map
Fast topology, capacity, integrity and proof boundaries for ZFS → L2ARC.
| ZFS boundary | What to verify | Proof limit |
|---|---|---|
| Identity / topology | Pool GUID/name, dataset/zvol, top-level vdev class, leaf-device identity and effective properties | Object presence alone does not prove integrity, performance or recovery |
| Capacity / protection | Pool free space, quotas/reservations, snapshot retention, redundancy and active scrub/resilver state | Free space or ONLINE state at one layer does not prove end-to-end health |
| Failure boundary | An L2ARC hit proves a secondary cached copy satisfied that read; it does not prove the original pool block is healthy or that L2ARC improves total workload performance. | Correlate ZFS evidence with both workload and lower device/path evidence |
| Acceptance | Healthy evidence: L2ARC serves meaningful reusable misses, reduces backend pressure without harmful memory/feed overhead, and workload latency improves under controlled comparison. | Close only after original workload plus checksum/read-back/recovery verification succeeds |