Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Cache

Direct answer

ZFS serves reads from ARC when possible and can extend the reusable read working set with L2ARC devices. Cache contents are secondary copies; authoritative data remains in the pool. Cache effectiveness depends on workload locality, working-set size, memory pressure, prefetch behavior and backend latency.

When to use this

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

First 30 seconds

1. ZFS caching: ARC (RAM), L2ARC (SSD read cache), SLOG (sync write log) — not a write cache.

2. RAM is the best cache.

3. Measure before adding SSD caches.

4. Cache device failure doesn't lose data (L2ARC).

5. SLOG failure is mostly safe in modern ZFS.

Operational verification

RAM ARC → L2ARC → disks

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

A cache hit shows that one request avoided the lower pool path; it does not establish the latency or integrity of the uncached backend path.

Suspicious evidence: warm-cache benchmark is treated as backend evidence, cache device errors are ignored, or L2ARC is added where ARC/memory pressure is the real constraint.

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 Cache 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 → optional L2ARC → pool/vdev miss path → checksum → cache fill → application

Healthy evidence: cache behavior materially matches workload locality, memory remains healthy, and backend pressure plus end-user latency improve without hiding storage faults.

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
  • Cache hit ≠ backend health.
  • L2ARC cache device ≠ redundancy.
  • Cache warmth ≠ steady-state production behavior.
  • More cache capacity ≠ lower latency when the workload has little reuse.
Key checks
  • zpool status — cache devices
  • arc_summary — ARC and L2ARC stats
  • zpool iostat -v 1 — cache device I/O
ReferenceHow it works1 section · depth on demand

How it works

How it works: ZFS maps dataset/zvol I/O through ARC/ZIL and metaslabs to vdev topology and physical devices, with checksums validating blocks on read.

ReferenceImportant terms & boundaries2 sections · depth on demand

Topology

A cache hit shows that one request avoided the lower pool path; it does not establish the latency or integrity of the uncached backend path.

and state what the evidence does not show.

In depth

ZFS caching has three layers:

LayerMediumHoldsNotes
ARCRAMRecently and frequently used blocksAdaptive (MRU + MFU lists)
L2ARCSSD/NVMeBlocks evicted from ARCRead cache only
ZIL/SLOGPool or log devicePending sync writesNot a write cache for bulk data

On Linux the ARC can grow to most of RAM by default (zfs_arc_max); on hypervisors, cap it to leave memory for VMs:

echo $((16*1024**3)) > /sys/module/zfs/parameters/zfs_arc_max
arcstat 1
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 → Cache. 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
zfs cachezfs cachingarc l2arc
Embedded reference data

Quick lookup tables

ZFS → Cache ZFS map

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

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 boundaryA cache hit proves that one request avoided the lower pool path; it does not establish the latency or integrity of the uncached backend path.Correlate ZFS evidence with both workload and lower device/path evidence
AcceptanceHealthy evidence: cache behavior materially matches workload locality, memory remains healthy, and backend pressure plus end-user latency improve without hiding storage faults.Close only after original workload plus checksum/read-back/recovery verification succeeds
Confirmation

Confirm action

Continue?