Lightning Talk
summary
Service-classifier for DNS queries uses an in-memory DB that grows from ~7 GB to OOM over days because many small allocations keep heap idle and never return to the OS; GC tuning slows requests but doesn't solve it. Built a memstats dumper and replaced the per-domain Go map with a sorted string table stored in contiguous chunk allocations (manual large slabs inside Go), cutting memory usage to ~800 MB and removing allocation spikes.
AI-written summary · about
chapters (6)
- 0:00Introduction to DNS firewall
- 1:21Memory growth issue in service
- 3:24Debugging memory with pprof
- 5:21Garbage collection impact
- 7:14Optimizing memory usage
- 9:07Q&A








