-
So, if my settings were like below (as a rough guide) - what would be my memory usage? Approx...
Just looking to get some basic maths for estimating my deployment. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Depends on Allow and Deny lists too. Running it just for DNS without any lists is only 13MB. |
Beta Was this translation helpful? Give feedback.
-
If you are really concerned about your memory footprint you should consider refraining from DOH and use DOT or UDP/TCP instead since this reduces the per request overhead which matters during the prefetch process. Additionally setting a min TTL for cache entries could reduce the load and memory spikes since it reduces cache roundtrips. |
Beta Was this translation helpful? Give feedback.
"plain text" is really misleading regarding DNS messages. 😅
It is stored as struct without the OPT section.
For prefetching purposes there are some additional values per cache entry and some additional overhead from the beginning (prefetching logic doesn't increase its footprint for additional cache entries).
The entries aren't compressed since the initial overhead is low and it would increase response times.
But then again your question is hard to answer since DNS messages differ in size and you don't specify what messages are stored(1 to 1 or 1 to n mapping, additional section,...).
If you want to calculate a really rough estimate use: MaxUdpSize * 2 * CacheEntryCount