Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

L2ARC

Direct answer

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.

When to use this

Use it when configuring, checking or troubleshooting L2ARC in ZFS.

First 30 seconds

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.

Operational verification

ARC evictions → L2ARC SSD → read hits

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and recovery traps

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.

Platform / version applicability
ZFS storage
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformZFS storage
Scope / prerequisiteUse it when configuring, checking or troubleshooting L2ARC in ZFS.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key checks
  • zpool status — cache vdev
  • arc_summary | grep -A10 L2ARC — L2ARC hits
  • zpool 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
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docZFS storage current

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%
Terminology layer

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.

Aliases that resolve here
l2arczfs cache devicesecondary arc
Embedded reference data

Quick lookup tables

ZFS → L2ARC ZFS map

Fast topology, capacity, integrity and proof boundaries for ZFS → L2ARC.

ZFS boundaryWhat to verifyProof limit
Identity / topologyPool GUID/name, dataset/zvol, top-level vdev class, leaf-device identity and effective propertiesObject presence alone does not prove integrity, performance or recovery
Capacity / protectionPool free space, quotas/reservations, snapshot retention, redundancy and active scrub/resilver stateFree space or ONLINE state at one layer does not prove end-to-end health
Failure boundaryAn 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
AcceptanceHealthy 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
Confirmation

Confirm action

Continue?