Re: bind caching algorithm?

This is a discussion on Re: bind caching algorithm? within the Bind Users forums, part of the DNS and Related Forums category; Cleaning up the TTL-expired records is totally fine and having records until its TTL expires is also good when ...


Go Back   Usenet Forums > DNS and Related Forums > Bind Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2004
KyoungSoo Park
 
Posts: n/a
Default Re: bind caching algorithm?


Cleaning up the TTL-expired records is totally fine and
having records until its TTL expires is also good when there is no
memory pressure.
But this cleaning scheme should not be the only algorithm to evict the
cached items.
The reason why I said it's not a good design is because I got the
impression this periodic cleaning
is the only scheme that BIND-4 and 8 is using if Barry is right.
I expected a kind of statistical evicting algorithm when the caching
buckets are full.
Maybe BIND designer expect most records will expire soon before worrying
about the memory pressure,
but that's not true.

KyoungSoo

>>>>
>>>>
>>>When it looks up an existing cached record, it checks whether its TTL
>>>has expired, and evicts it if so. Also, there's a periodic "cleaning"
>>>that scans the entire cache, evicting all records that have expired; the
>>>frequency of this is controlled by the "clean-interval" named.conf
>>>option.
>>>
>>>
>>>
>>>
>>>
>>>

>>This seems clearly not a good design. I think the evicting algorithm
>>should have a mechanism of
>>reflecting the past and/or future usage at the very least. What's the
>>intuition behind this?
>>
>>
>>

>The intuition is that the owner/administrator of a particular DNS datum
>is, within reasonable limits, the one who controls how volatile their
>datum is. Statistical methods are fine when you have nothing else to go
>on, but when the owner/administrator can tell you, through the protocol,
>how volatile a particular piece of data is, experience has shown that it
>is best to heed that command, at least as a maximum, i.e. it's OK to
>re-fetch the data from an authoritative source *before* the TTL has
>expired (and in fact, in memory-poor situations, you may need to
>prematurely evict data, thus trading off between memory usage and
>network usage), but it is almost uniformly a *bad* idea to hold onto
>data for which the administrator-set TTL has expired.
>
>- Kevin
>
>
>
>



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:41 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0