Use it when configuring, checking or troubleshooting Cache in ZFS.
Cache
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.
RAM ARC → L2ARC → disks
Context & applicabilityCommon mistakes · platform/version boundaries
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.
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 → 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 · 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.
- 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.
zpool status— cache devicesarc_summary— ARC and L2ARC statszpool 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:
| Layer | Medium | Holds | Notes |
|---|---|---|---|
| ARC | RAM | Recently and frequently used blocks | Adaptive (MRU + MFU lists) |
| L2ARC | SSD/NVMe | Blocks evicted from ARC | Read cache only |
| ZIL/SLOG | Pool or log device | Pending sync writes | Not 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
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 → Cache. 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 → Cache ZFS map
Fast topology, capacity, integrity and proof boundaries for ZFS → Cache.
| 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 | A 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 |
| Acceptance | Healthy 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 |