[Dnsmasq-discuss] Cache improvements

Simon Kelley simon at thekelleys.org.uk
Mon Mar 24 21:36:07 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 24/03/14 11:07, Olivier Mauras wrote:
> 
> 
> Hello,
> 
> I wondering what would be the effort, and if there'd actually be
> any interest for some dnsmasq cache improvements. Two things i'd
> love to see:
> 
> - Cache size in memory instead of lines I'd rather set 1GB than
> 10000 lines, could 10000 max be at least increased?

Note that there's a direct linear relationship between no of cache
entries and memory use. The exact factor depends on 32/64 bit platform
and if IPv6 support is compiled in.

The 10000 limit is there because performance may degrade with very
large caches, it's not clear that there would be any performance
advantage from making it very large.


> - Granular purging of cache entries. I sometimes - if not often -
> need to purge a single entry or a single domain from the cache,
> would be nice to be able to do so without clearing the whole
> cache.

The cost of refilling the cache is small, and the interface to allow
selective deletion could be cumbersome. I'm not convinced it's worth
the code-size and complexity cost.


Cheers,

Simon.

> 
> Thanks, Olivier
> 
> 
> 
> 
> _______________________________________________ Dnsmasq-discuss
> mailing list Dnsmasq-discuss at lists.thekelleys.org.uk 
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlMwpUcACgkQKPyGmiibgrclewCgjtaoqCH+2U1F5w37PljHn+lL
L2oAn1jnUxJT8kBFLsShXsfT5Fe4+VvA
=acux
-----END PGP SIGNATURE-----



More information about the Dnsmasq-discuss mailing list