Use it when configuring, checking or troubleshooting ARC in ZFS.
ARC
ARC uses system memory to cache ZFS blocks and metadata and adapts between recently and frequently used content. ARC occupancy is dynamic and competes with application memory according to platform memory-management behavior. High ARC hit ratio can reduce backend reads, but it does not make the pool or media healthy and must be interpreted with workload size and memory pressure.
1. ARC is ZFS's RAM cache (MRU/MFU).
2. Uses up to half RAM by default (Linux).
3. Limit on hypervisors (zfs_arc_max).
4. High hit rate = good.
5. Shrinks under memory pressure, but not instantly.
read → ARC hit? → else disk → cache
Context & applicabilityCommon mistakes · platform/version boundaries
An ARC hit shows the requested block was served from RAM cache at that moment, but it does not show backing storage latency, durability or future hit probability.
Suspicious evidence: ARC is blamed solely because it consumes RAM, hit ratio is interpreted without workload shape, or cache warmth hides an underlying pool latency problem.
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 lookup → hit return OR miss → pool/vdev read → checksum validation → ARC fill → application
Healthy evidence: ARC behavior matches workload locality, memory pressure is controlled, miss-driven backend I/O is sustainable, and application latency meets baseline.
Step 2 Branching troubleshooting Narrow the fault
Concrete boundaries: application/dataset/zvol → ARC/ZIL/transaction group → pool/vdev mapping → physical device → checksum/read-back → application.
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.
- ARC ≠ L2ARC.
- ARC memory use ≠ leak by itself.
- High ARC hit ratio ≠ backend health.
- Low ARC hit ratio ≠ automatically a problem for streaming or one-pass workloads.
arc_summary | head -50— ARC size and hit ratecat /proc/spl/kstat/zfs/arcstats | grep -E '^(size|c_max|hits|misses)'— raw statscat /sys/module/zfs/parameters/zfs_arc_max— limit
ReferenceWhy it matters1 section · depth on demand
How it works in operation
ZFS maps dataset/zvol I/O through ARC/ZIL and metaslabs to vdev topology and physical devices, with checksums validating blocks on read.
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
An ARC hit shows the requested block was served from RAM cache at that moment, but it does not show backing storage latency, durability or future hit probability.
ZFS maps dataset/zvol I/O through ARC/ZIL and metaslabs to vdev topology and physical devices, with checksums validating blocks on read. and state what the evidence does not show.
In depth
The ARC (Adaptive Replacement Cache) is ZFS's read cache in RAM. It balances recently used and frequently used data, which handles both new reads and repeatedly accessed hot data well. On Linux, ARC defaults to using a large part of free memory and shrinks under memory pressure.
| Item | Notes |
|---|---|
zfs_arc_max | Upper limit (set on hosts that also run VMs/databases) |
| Hit ratio | High ratio means most reads come from RAM |
| L2ARC | Optional second-level cache on SSD; uses some RAM for headers |
| MFU/MRU | Frequently / recently used lists |
arc_summary | head -40
arcstat 5 3
cat /sys/module/zfs/parameters/zfs_arc_max
echo $((16*1024**3)) > /sys/module/zfs/parameters/zfs_arc_max # 16 GiB, runtime
# persistent: options zfs zfs_arc_max=17179869184 in /etc/modprobe.d/zfs.conf
Add RAM before adding L2ARC; L2ARC only helps when the working set is larger than RAM but fits on the cache SSD.
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 → ARC. 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 → ARC ZFS map
Fast topology, capacity, integrity and proof boundaries for ZFS → ARC.
| 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 ARC hit proves the requested block was served from RAM cache at that moment; it does not prove backing storage latency, durability or future hit probability. | Correlate ZFS evidence with both workload and lower device/path evidence |
| Acceptance | Healthy evidence: ARC behavior matches workload locality, memory pressure is controlled, miss-driven backend I/O is sustainable, and application latency meets baseline. | Close only after original workload plus checksum/read-back/recovery verification succeeds |