A missing file, a header without rows and an active device call for different actions. Finding a zram package does not tell you which case applies.
Read the running kernel
Connect by SSH. Use ubus call system board to record the model, release.target and release.revision. The v3 target is ramips/mt76x8. Use the build for your actual revision. These commands are read-only.
cat /proc/swaps
grep -E 'SwapTotal|SwapFree' /proc/meminfo
uname -r

The isolated OpenWrt 25.12.6 x86/64 guest shows a header and 0 kB. This illustrates an empty table. It does not establish what a WR902AC image supports.
- Missing file? Check
mountfor proc at /proc and confirm /proc/meminfo is readable. Then check CONFIG_SWAP for that exact kernel and target. If available, runzcat /proc/config.gz | grep -w CONFIG_SWAP. No config or no match leaves support unconfirmed. Installing swapon cannot add missing kernel support. - Header only? No swap area is active. Expect SwapTotal of 0 kB. Identify the intended zram service or external device before changing anything.
- Device listed? Read Filename, Size and Used alongside SwapTotal and SwapFree. Used of zero means the area is idle at that moment.
Check whether the workload needs swap
If a blocklist update triggers pressure, reduce the list or stagger jobs. Compare MemAvailable before and after a normal update and resolve a domain from a LAN client. Recheck the intended device if swap was active. No reboot, mkswap or firmware change is needed for these checks.
Check for an out-of-memory event when the OpenWrt interface stops responding
Comments