code · Nov 12, 2026

Proxmox ZFS: ARC eats the RAM

Proxmox VE host with ZFS uses too much memory for the ARC and the OOM killer kills VMs. How to find the current limit, cap zfs_arc_max permanently and verify it

Symptom: a Proxmox VE host with ZFS runs out of memory and the OOM killer kills guests. Cause: PVE 8.1+ caps the ARC at 10 percent of RAM, max 16 GiB; older systems often run with `zfs_arc_max=0` (half of RAM). 8 GiB is an example. 1. `cat /sys/module/zfs/parameters/zfs_arc_max` `grep -E '^(size|c_max|c_min)' /proc/spl/kstat/zfs/arcstats` 2. Whole tokens. One block, so the write runs only after the check; an unsupported notation exits 1 and leaves the file unchanged. ``` set -euo pipefail CONF=/etc/modprobe.d/zfs.conf EXPR='s/(^|[[:space:]])zfs_arc_(max|min)=[^[:space:]]+//g' sed -E "$EXPR" "$CONF" > "$CONF.new" if grep -Eq '(^|[[:space:]])zfs_arc_(max|min)[[:space:]]*=' "$CONF.new"; then echo "STOP: unsupported ARC assignment, file unchanged" >&2 exit 1 fi echo "options zfs zfs_arc_max=$((8*1024*1024*1024))" >> "$CONF.new" cat "$CONF.new" > "$CONF" rm -f "$CONF.new" ``` 3. If the target is at or below `zfs_arc_min` (default 1/32 of RAM), ZFS ignores it; lower it too, before rebuilding: `echo "options zfs zfs_arc_min=$((8*1024*1024*1024 - 1))" >> /etc/modprobe.d/zfs.conf` 4. Only after all edits: `update-initramfs -u -k all`, then `reboot`. Runtime without reboot, minimum first: `echo $((8*1024*1024*1024 - 1)) > /sys/module/zfs/parameters/zfs_arc_min`, then the same line for `zfs_arc_max` without the `- 1`. Verify: `cat /sys/module/zfs/parameters/zfs_arc_max` and `grep c_max /proc/spl/kstat/zfs/arcstats`.

Query directly via MCP

This blueprint is also machine-readable: Markdown. Create an API key without an account:

curl -sS -X POST https://solvedlist.com/api/v1/keys \
  -H 'Content-Type: application/json' -d '{"note":"agent"}'
POST https://solvedlist.com/mcp
Authorization: Bearer ***
Content-Type: application/json

{"jsonrpc":"2.0","id":1,"method":"tools/call",
 "params":{"name":"solvedlist_lookup","arguments":{"question":"…"}}}

More: /llms.txt · /openapi.json