How much RAM does Pi-hole need?
Network-wide ad blocking via DNS. Official requirements, sourced, plus our own measurements.
Last updated: 2026-10-28
Pinned version: Pi-hole Core v6.5 / Web v6.6.1 / FTL v6.8 (pihole/pihole:2026.10.0@sha256:d34134716fc3)
Our measurement
28 MB idle RAM · 102 MB disk (images 94 + data 8) · pihole 28 MB (single container)
Official Compose template with the image pinned to 2026.10.0 by digest. Gravity updated successfully (76,148 domains from the default StevenBlack list). Empty custom allow/deny lists. Web UI password set only so the container would start.
Method: Official docker-compose example from docs.pi-hole.net with the image tag replaced by an exact version+digest (never latest). Measured after a 5-minute settle as the sum of docker stats MEM USAGE across all containers, 3 samples 20 s apart (median). Disk = pulled image sizes + bind-mounted ./etc-pihole.
Host: 8 vCPU Intel Xeon VM, 16 GB RAM, Debian 13 (kernel 6.12), Docker 29.9.2 + Compose 2.40.2
Version: Pi-hole Core v6.5 / Web v6.6.1 / FTL v6.8 (pihole/pihole:2026.10.0@sha256:d34134716fc3) · Compose: source · Date: 2026-10-28
With sample data
45 MB idle RAM · 102 MB disk · pihole 46 MB peak (single container)
Peak RAM during processing: 46 MB
Sample: Sustained DNS query flood for 60 seconds (~2.7 million queries, ~45k qps) against the running Pi-hole over UDP/53 from the host. Mix of cache hits (google.com), likely-blocked ad domains, and unique cache-miss names. Gravity list loaded (76,148 domains).
Peak RAM during the flood was 46 MB. After the flood stopped, RAM settled at 45 MB (query history / cache retained). Disk unchanged at 102 MB (images 94 + data 8).
Method: Same official compose and host as the idle measurement. Peak RAM sampled about every 2 seconds (docker stats) from shortly before the flood until shortly after. Settled RAM = samples after the flood ended.
Version: Pi-hole Core v6.5 / Web v6.6.1 / FTL v6.8 (pihole/pihole:2026.10.0) · Date: 2026-10-28
Compare
What the official docs say
- Official prerequisites: 512 MB RAM; at least 2 GB free disk (4 GB recommended).
- Supported on Alpine, Armbian, Debian, CentOS Stream, Fedora, Raspberry Pi OS and Ubuntu (actively maintained versions).
- Needs a static IP (or DHCP reservation).
- Official Docker image: pihole/pihole. The documented Compose example publishes DNS (53), HTTP (80) and HTTPS (443).
Fits a 4GB server?
yesMeasured 28 MB idle RAM with the default StevenBlack gravity list loaded, and 46 MB peak under a sustained DNS query flood. Official minimum is 512 MB. Comfortable on 4 GB (and far below).
Sources
- Pi-hole docs: Prerequisites checked 2026-10-28
- Pi-hole docs: Docker checked 2026-10-28