Re: Stale entries in dnscache's cache structure

Matthew Dempsky <[email protected]>
Newsgroups gmane.network.djbdns
Message-ID <[email protected]>
On Wed, Mar 10, 2010 at 1:39 PM, Laurent Bercot <[email protected]> wrote:
>  Let's be a bit technical for a change, shall we?

:)

>  I studied dnscache's cache structure, and am appalled by its simplicity.
> It's just beautiful that such a simple structure can be used; no wonder
> dnscache is fast.

Agreed.

>  What do you think ? Should I go for the theoretically better solution,
> or does usage show that this flaw in dnscache is never a problem in
> practice and simplicity wins ?

I think it would be interesting to see comparisons on how dnscache
behaves under different cache implementation strategies (e.g.,
memcached's probably has very similar requirements, since it's a fixed
memory key/value store with expiration times).  The existing approach
is certainly remarkably simple and demands very little CPU work for
reads and writes while also keeping memory overhead to a minimum.

If you do any experiments, be sure to keep up informed. :)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.