Illustrated title card for the guide: OpenWrt RAM for Adblock, Adblock-Fast, AdGuard Home & banIP
Network filtering

OpenWrt RAM for Adblock, Adblock-Fast, AdGuard Home & banIP

Compare RAM guidance for Adblock, Adblock-Fast, AdGuard Home and banIP on OpenWrt. See what uses memory and how to check headroom during list updates.

For DNS ad blocking on an OpenWrt router with tight RAM, consider Adblock-Fast. It prepares lists for your DNS resolver and exits. Choose Adblock for its feed controls, AdGuard Home for a standalone filtering DNS server, or banIP for firewall rules that match IP addresses. Adblock-Fast guide, Adblock README, AdGuard Home setup guide, banIP README

What each tool needs RAM for

ToolWhere filtering happensHow to read the RAM guidance
Adblock-FastBuilds a list for dnsmasq, SmartDNS or Unbound.The maintainer describes the default list selection as suitable for routers with limited RAM. Maintainer guide
AdblockBuilds domain lists for an existing DNS backend.The package README sets a support floor of 128 MB of total RAM. With the default directories, feed backups and the generated list stay in RAM between updates. Package README
AdGuard HomeRuns its own filtering DNS server.In the v0.107-series discussion, an AdGuard maintainer recommends smaller lists on devices with less than about 1 GiB of RAM. The maintainer ties memory use during a refresh to the total size of the enabled lists. Setup guide, Maintainer guidance
banIPFilters packets by source or destination IP address using nftables sets.Loading firewall rules and set entries together can use substantial memory. The README gives tuning advice for routers with 256–512 MB of RAM. Start with a small set of feeds. Package README

How to reduce memory pressure

  • Adblock-Fast. On routers with less RAM than the guide specifies for its default lists, remove lists the router can’t handle. With dnsmasq, the documented lean mode can use a prebuilt dnsmasq configuration file and skip local list processing. Maintainer guide
  • Adblock. On a router in the README’s low-memory range, set adb_cores to 1 to use single-threaded processing. If backups are on external storage, enable adb_dnsshift to store the generated list there too. Package README
  • AdGuard Home. Below the AdGuard maintainer’s RAM guideline, use smaller filter lists, such as the mini variants of HaGeZi’s lists. Maintainer guidance
  • banIP. For routers in the README’s low-memory range, it gives ban_splitsize set to 1024 as an example. This splits the load of an external set after every 1,024 lines or entries. Package README

How to check memory on your router

In the router’s shell, run the following and record MemAvailable. It estimates how much memory the system can make available for new applications without swapping. Linux kernel memory documentation

cat /proc/meminfo
When to read itWhat to record
Before a list refreshRecord MemAvailable as a baseline.
During a list refreshRepeat the command during the refresh.
After the refresh finishesRecord MemAvailable again. AdGuard Home update discussion

Evidence and limits. The OpenWrt package READMEs on master, the Adblock-Fast maintainer guide, AdGuard Home’s v0.107-series memory guidance and the Linux kernel documentation were checked on November 26, 2026. The checks were not run on a router for this article.

Sources

  1. Adblock-Fast maintainer guide
  2. OpenWrt Adblock package README
  3. AdGuard Home setup guide
  4. OpenWrt banIP package README
  5. AdGuard Home filter update memory discussion
  6. Linux kernel documentation for /proc/meminfo

Related