fff-dhcp: increase dns cachesize from 150 to 8k #28

Closed
jkimmel wants to merge 1 commits from jkimmel/firmware:dnsmasq-cache into master

1 Commits

Author SHA1 Message Date
Johannes Kimmel 8e3db2b314 fff-dhcp: increase dns cachesize
The default cachesize for dnsmasq is 150 entries, which results in a
poor cache hit rate.

Raise the default to 1024 to provide better cache hit rates on all
devices while still keeping memory usage in check.

Further increase the cachesize to 8192 entries for systems with enough
ram (currently more than 64MB).

The memory usage will increase roughly 100B per entry.

The size was chosen empirically. Higher values don't seem to increase
cache hit rate a lot.

Signed-off-by: Johannes Kimmel <fff@bareminimum.eu>
2022-01-03 11:50:23 +01:00