Skip to main content
QUICK REVIEW

[Paper Review] LRC: Dependency-Aware Cache Management for Data Analytics Clusters

Yinghao Yu, Wei Wang|arXiv (Cornell University)|Mar 24, 2017
Advanced Data Storage TechnologiesComputer Science19 references5 citations
TL;DR

This paper proposes LRC, a dependency-aware cache replacement policy for data analytics clusters that evicts data blocks with the lowest reference count—the number of uncomputed child blocks depending on them. By leveraging application-level DAG semantics, LRC improves cache hit ratio and reduces runtime by up to 60% compared to LRU, achieving the same performance with only 40% of the cache space in Spark deployments.

ABSTRACT

Memory caches are being aggressively used in today's data-parallel systems such as Spark, Tez, and Piccolo. However, prevalent systems employ rather simple cache management policies--notably the Least Recently Used (LRU) policy--that are oblivious to the application semantics of data dependency, expressed as a directed acyclic graph (DAG). Without this knowledge, memory caching can at best be performed by "guessing" the future data access patterns based on historical information (e.g., the access recency and/or frequency), which frequently results in inefficient, erroneous caching with low hit ratio and a long response time. In this paper, we propose a novel cache replacement policy, Least Reference Count (LRC), which exploits the application-specific DAG information to optimize the cache management. LRC evicts the cached data blocks whose reference count is the smallest. The reference count is defined, for each data block, as the number of dependent child blocks that have not been computed yet. We demonstrate the efficacy of LRC through both empirical analysis and cluster deployments against popular benchmarking workloads. Our Spark implementation shows that, compared with LRU, LRC speeds up typical applications by 60%.

Motivation & Objective

  • To address the inefficiency of traditional cache policies like LRU in data analytics clusters, which ignore application-level data dependencies.
  • To improve cache hit ratio and reduce response time by exploiting the directed acyclic graph (DAG) structure of data processing workflows.
  • To design a lightweight, pluggable cache management policy that can be easily deployed in DAG-based systems like Spark and Tachyon.
  • To enable efficient cache sharing in multi-tenant environments by leveraging semantic awareness of data dependencies.

Proposed method

  • LRC evicts data blocks with the smallest reference count, defined as the number of unmaterialized child blocks that depend on them.
  • The reference count is dynamically updated at runtime based on the DAG structure and task completion status.
  • LRC is implemented as a pluggable memory manager in Spark, with minimal runtime overhead due to lightweight reference count messaging.
  • The policy parses the job DAG at submission time and propagates reference count updates only to relevant worker nodes.
  • LRC-Online variant adapts to dynamic workloads by continuously tracking reference counts during execution.
  • The system is designed to be extensible to other DAG-based frameworks and multi-tenant cache sharing systems.

Experimental results

Research questions

  • RQ1Can leveraging application-level data dependency semantics in the form of a DAG improve cache management efficiency in data analytics clusters?
  • RQ2How does a reference count-based eviction policy compare to recency- and frequency-based policies like LRU in terms of cache hit ratio and application performance?
  • RQ3To what extent can LRC reduce memory footprint while maintaining or improving application performance?
  • RQ4How does LRC scale in multi-tenant environments with competing cache demands?

Key findings

  • LRC reduces application runtime by up to 60% compared to LRU when using the same amount of cache memory.
  • LRC achieves the same application performance as LRU while using only 40% of the cache space.
  • LRC increases the cache hit ratio by up to 119% compared to LRU in empirical evaluations.
  • LRC-Online achieves greater performance gains than LRU under smaller cache sizes and higher tenant counts, indicating stronger scalability under resource pressure.
  • The reference count metric is a more accurate predictor of future data access than recency or frequency, as validated through DAG-based access pattern analysis.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.