You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Jan Schlicht <ja...@mesosphere.io> on 2015/07/24 12:28:36 UTC

Review Request 36773: Implemented a LRU entry selection criteria for cache eviction.

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/36773/
-----------------------------------------------------------

Review request for mesos.


Bugs: MESOS-3112
    https://issues.apache.org/jira/browse/MESOS-3112


Repository: mesos


Description
-------

A linked list is used to keep cache entries in LRU-to-MRU order. Each time an existing cache entry is requested, it is moved to the back of the list. During cache eviction entries are removed from the front of the list until enough cache space can be freed.


Diffs
-----

  src/slave/containerizer/fetcher.hpp 17225072ba5c1c9a7209f2923bcf562fcb76201f 
  src/slave/containerizer/fetcher.cpp e030deabd5e749100cbccabb256dbd4af8b2fe58 
  src/tests/fetcher_cache_tests.cpp bd9c406a532a85fa95a5e9cfa6003f4893191c57 

Diff: https://reviews.apache.org/r/36773/diff/


Testing
-------

make check


Thanks,

Jan Schlicht