Mahesh Reddy has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/20607


Change subject: WIP KUDU-613: Scan Resistant Caching
......................................................................

WIP KUDU-613: Scan Resistant Caching

This patch introduces a new class, the SLRU cache with two segments,
the probationary and protected, to protect the cache from long/random
reads.

Looking for feedback on general approach for implementation so far.

TODO:
- Add tests
- Add mutex when reading/writing from cache
- Add metrics on SLRU cache level, both segments already have their
  own metrics
- Add parameter for how hits on a cache entry until it's upgraded
  to protected segment
- Use SLRU cache in BlockCache

Change-Id: I45531534a2049dd38c002f4dc7982df9fd46e0bb
---
M src/kudu/util/cache.cc
M src/kudu/util/cache.h
M src/kudu/util/nvm_cache.cc
3 files changed, 268 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/07/20607/1
--
To view, visit http://gerrit.cloudera.org:8080/20607
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I45531534a2049dd38c002f4dc7982df9fd46e0bb
Gerrit-Change-Number: 20607
Gerrit-PatchSet: 1
Gerrit-Owner: Mahesh Reddy <[email protected]>

Reply via email to