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 2:06 PM, <[email protected]> wrote: > If the cache is full, I see no valid reason to delete an entry with smaller > remaining TTL first. Laurent isn't suggesting deleting entries with smaller TTLs before deleting entries with larger TTLs. He's pointing out that dnscache's cache replacement algorithm doesn't differentiate between entries that have expired and entries that are still valid. Theoretically, dnscache could reclaim memory from entries that have expired or been overwritten before needing to resort to evicting still valid data.