TL;DR
This paper introduces a novel caching system where multiple proxies share a common cache memory, reducing costs and improving efficiency. They develop a "working-set approximation" to accurately predict cache hit probabilities in this shared environment and implement a prototype, MemCacheD with Object Sharing (MCD-OS), to demonstrate its practical benefits.
What Problem Does This Paper Address?
As edge-cloud computing grows, so does the need for efficient content caching. Traditional caching systems often involve individual proxies managing their own caches, leading to duplicated storage and increased costs. This paper tackles the challenge of cost-effectively sharing cache resources among multiple proxies, each serving a distinct set of users. The core problem is how to manage this shared cache, where objects are distributed across different proxy caches (LRU-lists), and how to accurately predict performance (cache hit rates) in such a dynamic, shared environment. A key difficulty is the "ripple effect" of evictions: when one proxy evicts an object, it can impact the cache state for other proxies, potentially leading to cascading evictions and performance degradation.
Methods
The authors propose a "working-set approximation" to estimate cache hit probabilities in their object-sharing system. This method extends existing approximations for non-shared caches by accounting for the fact that an object's "length" is shared across multiple proxy LRU-lists. They derive equations to model the mean eviction times for objects in this shared context.
A significant contribution is the development of a prototype called MemCacheD with Object Sharing (MCD-OS). This implementation modifies the popular Memcached system to support object sharing. Key modifications include:
- Shared Cache Memory: All proxies access a single physical cache.
- Proxy-Specific LRU-Lists: Each proxy maintains its own LRU list, representing its "view" of the cached objects.
- Object Length Apportionment: When an object is shared, its length is divided among the LRU-lists of the proxies that have it cached.
- Ripple Eviction Handling: The system includes mechanisms to manage the "inflation" and "deflation" of object lengths in LRU-lists due to evictions and insertions, aiming to mitigate the ripple effect.
Datasets
Not discussed in the paper. The evaluation uses simulated data and a prototype implementation.
Key Insights and Ideas
- Object Sharing Reduces Costs and Improves Performance: By sharing cache memory, proxies can achieve better cache hit rates for a given budget or reduce costs for the same performance level.
- Accurate Performance Prediction is Crucial: The "working-set approximation" is vital for understanding and managing the performance of shared caches, especially for admission control and resource allocation.
- Ripple Evictions are a Real Challenge: The paper highlights how evictions in one proxy's LRU-list can cascade and affect others, necessitating careful management.
- MCD-OS Demonstrates Practicality: The implementation of MCD-OS shows that object sharing can be practically realized in a real-world caching system like Memcached.
- Object Sharing Creates Positive Association: The paper suggests that object sharing can lead to a positive correlation between LRU-list hit events, potentially increasing hit probabilities for all proxies.
Key Results
- The proposed working-set approximation provides reasonably accurate cache-hit probabilities for shared caches with three or more LRUs.
- For the J=2 LRU case, the approximation provides upper and lower bounds for hit probabilities.
- The MCD-OS prototype demonstrates that object sharing can be implemented.
- Experiments show that while object sharing introduces some overhead for set requests (due to ripple evictions), it is manageable. In their experiments, only 16% of set requests experienced more than one eviction.
- The CDFs of set request execution times show that MCD-OS has slightly higher latency compared to standard Memcached, but the difference is not drastic.
Limitations and Future Work
- J=2 LRU Approximation: The approximation for the J=2 case is noted to underestimate hit probabilities, and the paper provides bounds instead.
- S-LRU with Multiple Slabclasses: The current MCD-OS implementation uses a flat LRU and a single slabclass. Implementing S-LRU with multiple slabclasses is identified as future work.
- Ripple Eviction Reduction: The paper mentions ongoing work to evaluate methods for reducing ripple eviction overhead.
- Variable-Length Objects: Evaluating MCD-OS with variable-length objects allocated in different slabs is also a future direction.
- Overbooking: The paper discusses the possibility of "overbooking" the cache (total allocated proxy memory exceeding physical cache size) and suggests admission control strategies for new proxies.
Summary updated