Cloudflare saved 100TB of memory with 5 changes to 1.1.1.1's DNS cache
ritakozlov · x · 2026-08-28
Cloudflare's engineering blog details how Big Pineapple, the platform behind 1.1.1.1 and other DNS services, holds over 250 billion DNS cache entries at any time—at that scale, wasting one byte per entry costs 250GB+ across the fleet.
Five successive changes to how cache entries are stored cut per-entry footprint by over 50%, freeing roughly 100TB of memory—equivalent to the RAM of 130 Gen 13 servers. The cache also got faster: insert throughput rose 43% and lookup latency dropped 19%, as fewer allocations and better memory locality meant no speed-for-space tradeoff.
The post covers the cache design (Rust CacheKey struct, EDNS Client Subnet causing multiple cached versions per query), a model deep-dive in large-scale systems engineering.
Related event: Cloudflare Cuts 100TB of Memory with Rust DNS Cache Optimizations(3 posts)→
More from Infra
- Which free local AI model to download for your GPU, from 6GB to 24GB VRAM — alex_verem · 2026-11-30
- tqLLM 1.9.0: C++ LLM engine claims 4.6x Strata on 16GB, adds AMD RX 580 support — pmttyji · 2026-11-30
- oMLX 0.8.4 doubles Inkling 2 Mini decode speed on Mac, adds concurrent MTP — pcuenq · 2026-11-30
- Tencent issues $5.4B notes as AI costs turn cash flow negative; AMD closes World Labs deal with Fei-Fei Li — YvesMulkers · 2026-11-30
- Banks in Europe and Asia plan higher spending on local data storage to cut US cloud reliance — AIFlow_ML · 2026-11-30
- Air New Zealand to offer free Starlink Wi-Fi across entire fleet by end of 2028 — elonmusk · 2026-11-30