How we saved 100 terabytes of memory by optimizing 1.1.1.1’s DNS cache
Cloudflare cut per-entry memory 56% in 1.1.1.1's DNS cache via five Rust optimizations, freeing about 100 TB across its fleet.
Cloudflare engineers applied five Rust-level memory optimizations to the Big Pineapple DNS cache layout behind the 1.1.1.1 resolver. The changes cut per-entry memory usage by 56%, freeing approximately 100 terabytes of memory across the fleet.
- Five Rust-level optimizations reduced DNS cache per-entry memory by 56%.
- Approximately 100 TB of memory reclaimed across Cloudflare's fleet.
- Work targets the Big Pineapple cache serving 1.1.1.1.
- Vendors
- Cloudflare
- Products
- 1.1.1.1
From the original article

Five Rust-level memory optimizations to the DNS cache layout of Big Pineapple cut per-entry memory by 56%, freeing approximately 100 TB of memory across Cloudflare's fleet.
By Sebastiaan Neuteboom · blog.cloudflare.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.