{"rewrite":{"id":"r_766b5a681e958643e09a496f","clusterId":"c_d31e1d15d6ea757c42cc33f0","slug":"cloudflare-cuts-dns-cache-memory-by-100tb-via-data-structure-changes","model":"deepseek-v4-flash","headline":"Cloudflare Cuts DNS Cache Memory by 100TB via Data Structure Changes","summary":"Cloudflare revised the data structure of its DNS cache for 1.1.1.1 and other services, cutting memory usage by about 100TB across the system. Per-entry memory dropped 56 percent, from 953 to 420 bytes, while read and write speeds improved. The changes target inefficiencies in Rust types, DNS section storage, and record types.","whyItMatters":"The optimization shows how careful data structure work at the scale of 250 billion cache entries yields dramatic resource savings without hardware upgrades.","webCardHtml":"\u003cp\u003eCloudflare\u0026#39;s Big Pineapple DNS infrastructure maintains over 250 billion cache entries at any given time, so even a single byte per entry costs more than 250GB of memory. The team replaced Rust\u0026#39;s Vec and String types with fixed-size Box types, cutting 64 bytes per entry by removing unused capacity. DNS response sections, previously stored in separate lists, now share one list with two byte offsets, saving 28 bytes each. Boolean values were packed at the bit level, and padding was reduced.\u003c/p\u003e\u003cp\u003eThe largest gain came from record types. The enum used for all record types reserved 144 bytes per entry to fit the largest type, NAPTR, while A and AAAA records, which make up over 80 percent of traffic, need only 4 and 16 bytes. Moving large types to a separate memory area saved 120 bytes per entry for A and AAAA records. These changes, combined with avoiding duplicate domain name storage, produced the 100TB reduction.\u003c/p\u003e","blueskyPost":"Cloudflare's DNS cache cut per-entry memory 56 percent, from 953 to 420 bytes. The savings come from Rust type choices and DNS section storage, not hardware.","twitterPost":"Cloudflare cut per-entry DNS cache memory 56 percent via Rust type and storage changes, saving 100TB.","threadsPost":"Cloudflare trimmed DNS cache memory by 100TB by shaving each entry from 953 to 420 bytes. The gains came from revising Rust types and DNS section storage, not from new hardware.","newsletterBlurb":"Cloudflare announced a major DNS cache optimization that reduces memory usage by 100TB across its 1.1.1.1 resolver. Per-entry memory dropped 56 percent, and the changes also improved cache read and write performance.","attributionJson":"[{\"source\":\"GIGAZINE\",\"url\":\"https://gigazine.net/news/20260828-cloudflare-dns-cache-optimization/\",\"title\":\"Cloudflare trims DNS cache by tens of bytes per entry to save 100TB of memory\"}]","lintFlagsJson":null,"lintHits":0,"costUsd":0,"inputTokens":4667,"outputTokens":595,"status":"published","repairAttempts":0,"nextRepairAt":null,"factsAttemptedAt":1788021476,"createdAt":"2026-08-29T16:30:39.000Z","publishedAt":"2026-08-29T16:31:44.000Z","updatedAt":"2026-08-29T16:30:39.000Z"},"cluster":{"id":"c_d31e1d15d6ea757c42cc33f0","canonicalTitle":"Cloudflareが1.1.1.1のDNSキャッシュを数十バイト単位で削り込んで100TBのメモリを節約","representativeArticleId":"a_2d415217af4673dbe58fdc77","sourceCount":1,"writtenSourceCount":1,"writeAttempts":0,"isSolo":true,"entitiesJson":"{\"anime_titles\":[],\"manga_titles\":[],\"work_titles\":[],\"studios\":[],\"people\":[],\"type\":\"news\",\"domain\":\"other\",\"is_roundup\":false}","contentType":"news","status":"published","firstSeenAt":"2026-08-28T07:00:00.000Z","lastSeenAt":"2026-08-28T07:00:00.000Z","updatedAt":"2026-08-29T16:31:48.000Z"},"attribution":[{"source":"GIGAZINE","url":"https://gigazine.net/news/20260828-cloudflare-dns-cache-optimization/","title":"Cloudflareが1.1.1.1のDNSキャッシュを数十バイト単位で削り込んで100TBのメモリを節約"}],"entities":{"anime_titles":[],"manga_titles":[],"work_titles":[],"studios":[],"people":[],"type":"news","domain":"other","is_roundup":false},"keyFacts":null}
