03-cache-algorithm 817 B

12345678910111213141516171819202122
  1. 03-cache-algorithm
  2. Introduction
  3. ------------
  4. Cache performance may be important for the resolver. It might not be
  5. critical. We need to research this.
  6. One key question is: given a specific cache hit rate, how much of an
  7. impact does cache performance have?
  8. For example, if we have 90% cache hit rate, will we still be spending
  9. most of our time in system calls or in looking things up in our cache?
  10. There are several ways we can consider figuring this out, including
  11. measuring this in existing resolvers (BIND 9, Unbound) or modeling
  12. with specific values.
  13. Once we know how critical the cache performance is, we can consider
  14. which algorithm is best for that. If it is very critical, then a
  15. custom algorithm designed for DNS caching makes sense. If it is not,
  16. then we can consider using an STL-based data structure.