In an active session, read logread, dmesg, and /proc/meminfo. When you see OOM killer entries, note the process killed, timestamp, and business context prior to the event. Linux uses free memory for caching; focus on MemAvailable and its trends.
First reduce the load that triggers it
If peak loads are caused by DNS lists, download tasks, or containers, reduce the working set or migrate the service. Version-matched zram-swap can compress and retain some pages in memory, at the cost of CPU usage. When disk swap is required, choose appropriate external storage, and verify mounting, lifespan, and behavior after disk failure.
Match the process table to the kernel fields
In Status → Processes record the service PID, Memory usage (%) and the time. The LuCI 25.12 branch puts the %MEM value from the process RPC in this column. Our 25.12.6 guest also returned VSZ. The column label alone does not identify resident physical memory. Keep the process running while you check it.

In SSH replace 1 below with the PID just noted. The value 1 only demonstrates the lookup. Match Name to the intended process and discard the comparison if it has restarted. Divide VmSize and VmRSS separately by MemTotal from the same sampling window and multiply by 100. Compare both with the display, allowing for rounding and sampling time.
p=1
grep -E '^(Name|VmSize|VmRSS):' "/proc/$p/status"
grep -E '^(MemTotal|MemAvailable):' /proc/meminfo
Distinguish a large address space from memory pressure
A service such as cloudflared may reserve virtual address space counted in VmSize. VmRSS represents resident pages and can include shared pages. Sample the same process under the same workload more than once. A large VSZ alone is insufficient reason to stop a service when VmRSS is stable and MemAvailable is adequate. If available memory keeps falling and the service fails, inspect OOM logs and other processes. The guest screenshot uses dnsmasq to illustrate the fields; we did not measure cloudflared.

AdGuardHome shows 602% memory on an AX3000T. Compare VSZ and RSS
Use OOM records to determine if memory compression is needed
Find the actual terminated process from logread, and record MemAvailable, load, and swap conditions. First, reduce recoverable tasks, then compare with ZRAM on supported devices.
Verify actual usage from cat /proc/swaps, free, and zram's mm_stat. Observe if page response or throughput has noticeably degraded. When under memory pressure, first stop large-consuming services, then disable actively used swap.
Service recovery is feasible as long as there is no excessive CPU load during peak times. The issue arises from the continuous leakage that causes the repair process to run indefinitely, potentially leading to unbounded swap expansion.
Check the terminal output

Will more RAM improve router throughput?
Keep endpoints, direction, frame size and workload fixed. Record receiver throughput, latency, load per core and the fields below over the same interval. Leave missing connection tracking fields blank.
grep -E '^(MemAvailable|SwapFree):' /proc/meminfo
for k in count max; do
p="/proc/sys/net/netfilter/nf_conntrack_$k"
if [ -r "$p" ]; then printf '%s ' "$k"; cat "$p"; fi
done
if [ -r /proc/pressure/memory ]; then cat /proc/pressure/memory; fi
If one core stays busy while available memory is stable, inspect forwarding first. If the connection count approaches the limit and the log reports a full table, identify the source of connections. More RAM alone does not remove the configured limit. If memory falls during reclaim stalls or OOM events, pause one optional service, repeat and restore it. Consider more capacity only if pressure and performance repeatedly change together. Check CPU too, since stopping work frees processor time.
Why can MemAvailable be lower than MemFree on OpenWrt? An Archer C7 v5 example
Reference
- Linux zram documentation
- OpenWrt source and build instructions
- Attended Sysupgrade service
- Linux · /proc/meminfo
- Linux · nf_conntrack
Comments