Skip to main content
QUICK REVIEW

[Paper Review] Learning-based Dynamic Cache Management in a Cloud

Jinhwan Choi, Yu Gu|arXiv (Cornell University)|Feb 2, 2019
Caching and Content DeliveryComputer Science22 references3 citations
TL;DR

This paper proposes a learning-based dynamic cache management system for cloud environments that estimates tenant data access patterns using probabilistic distributions (uniform, Gaussian, exponential, Zipf) and predicts cache hit rates via regression models (SVR, GPR, FCN) to optimize cache space allocation while guaranteeing per-tenant quality of service (QoS). The method dynamically resizes cache based on predicted hit rates, achieving consistent QoS compliance and resource optimization across synthetic and YCSB workloads, with fully connected neural networks (FCN) outperforming other regression techniques.

ABSTRACT

Caches are an important component of modern computing systems given their significant impact on performance. In particular, caches play a key role in the cloud due to the nature of large-scale, data-intensive processing. One of the key challenges for the cloud providers is how to share the caching capacity among tenants, under the circumstance that each often requires a different degree of quality of service (QoS) with respect to data access performance. The invariant is that the individual tenants' QoS requirements should be satisfied while the cache usage is optimized in a system-wide manner. In this paper, we introduce a learning-based approach for dynamic cache management in a cloud, which is based on the estimation of data access pattern of a tenant and the prediction of cache performance for the access pattern in question. We consider a variety of probability distributions to estimate the data access pattern, and examine a set of learning-based regression techniques to predict the cache hit rate for the access pattern. The predicted cache hit rate is then used to make a decision whether reallocating cache space is needed to meet the QoS requirement for the tenant. Our experimental results with an extensive set of synthetic traces and the YCSB benchmark show that the proposed method consistently optimizes the cache space while satisfying the QoS requirement.

Motivation & Objective

  • To address the challenge of efficiently sharing limited cache resources among multiple cloud tenants with varying quality of service (QoS) requirements for data access performance.
  • To develop a dynamic cache management approach that adapts cache allocation in real time based on evolving data access patterns.
  • To improve system-wide cache utilization while ensuring individual tenant QoS requirements—specifically, minimum required cache hit rates—are consistently met.
  • To evaluate the effectiveness of machine learning techniques in predicting optimal cache sizes based on estimated access patterns.

Proposed method

  • Estimates tenant data access patterns by fitting query key distributions to four probabilistic models: uniform, Gaussian, exponential, and Zipf using the Kolmogorov-Smirnov (KS) test.
  • Uses the KS test to validate which distribution best fits observed query samples, enabling accurate pattern estimation even with as few as 200 samples.
  • Applies regression models—Support Vector Regression (SVR), Gaussian Process Regression (GPR), and Fully Connected Neural Network (FCN)—to predict cache hit rates based on the estimated access pattern.
  • Dynamically resizes cache space when predicted hit rates fall below the required threshold, triggered at regular intervals (e.g., every 10,000 queries) or upon detected pattern changes.
  • Employs a feedback loop where cache resizing is performed only when the predicted hit rate indicates a need to meet the QoS requirement, minimizing unnecessary reallocation.
  • Validates the system using synthetic traces with controlled distribution shifts and the YCSB benchmark, measuring hit rate and response time before and after resizing.

Experimental results

Research questions

  • RQ1How accurately can access patterns be estimated using probabilistic distributions (uniform, Gaussian, exponential, Zipf) with limited query samples?
  • RQ2Which regression model (SVR, GPR, FCN) provides the most accurate prediction of cache hit rates for a given access pattern?
  • RQ3Can dynamic cache resizing based on predicted hit rates consistently maintain tenant QoS requirements while optimizing system-wide cache utilization?
  • RQ4How quickly and effectively does the system respond to temporal changes in data access patterns?

Key findings

  • The KS-test-based access pattern estimation achieved high accuracy even with as few as 200 query samples, enabling timely detection of pattern changes.
  • The Fully Connected Neural Network (FCN) outperformed SVR and GPR in predicting cache hit rates across all tested distributions, demonstrating superior regression accuracy.
  • With synthetic traces, the system successfully resized cache in response to pattern changes—e.g., from exponential to Zipf to Gaussian—restoring hit rates to required levels within a short warm-up period.
  • In YCSB benchmark experiments, initial cache allocation of 0.1 GB resulted in a 53.7% hit rate, which increased to 80.9% after resizing to 0.8 GB based on FCN predictions, meeting the 80% QoS requirement.
  • Average response time decreased from 4.46 ms to 2.10 ms after cache resizing, confirming performance improvements aligned with hit rate gains.
  • The system maintained QoS compliance throughout all pattern transitions, demonstrating robustness and adaptability in dynamic cloud environments.

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.