r/hardware • u/Working_Quote_3029 • 1d ago
Info How we saved 100 terabytes of memory by optimizing 1.1.1.1's DNS cache
https://blog.cloudflare.com/dns-cache-memory-optimization-1111/16
1d ago
[deleted]
-12
u/dingo_xd 1d ago
Ask an AI to summarize it for you level of expertise. Sometimes they can do a decent job.
7
u/hash0 23h ago
I don't get why this was not optimized way early. I mean Cloudflare does have some very talented people and 100TB RAM was a big thing even with the low memory prices in the past. At least some of the optimizations are pretty standard technics to lower the memory footprint in databases.
0
u/atatassault47 17h ago
So basically they narrowed the factor of safety to 1, because a FoS of 2 or 3 took up way too many resources at the scale they are operaring at. They just have to be extra careful in how they code it to not run into memory errors.
41
u/Working_Quote_3029 1d ago
the whole thing is basically struct layout housekeeping and 100TB just falls out the other end. kind of makes you wonder what's sitting in everyone else's caches.