Skip to main content
QUICK REVIEW

[Paper Review] On Performance Stability in LSM-based Storage Systems (Extended Version)

Luo, Chen, Carey, Michael J.|arXiv (Cornell University)|Jun 23, 2019
Advanced Data Storage TechnologiesComputer Science32 citations
TL;DR

This paper proposes a two-phase experimental method to evaluate write stall stability in LSM-based storage systems, identifying that merge scheduler design critically impacts performance variance. By measuring maximum sustainable write throughput and testing under high utilization (95% of peak), the study shows that greedy schedulers and proper merge scheduling enable high throughput with low write latency, making LSM-trees viable for production workloads with strict SLAs.

ABSTRACT

The Log-Structured Merge-Tree (LSM-tree) has been widely adopted for use in modern NoSQL systems for its superior write performance. Despite the popularity of LSM-trees, they have been criticized for suffering from write stalls and large performance variances due to the inherent mismatch between their fast in-memory writes and slow background I/O operations. In this paper, we use a simple yet effective two-phase experimental approach to evaluate write stalls for various LSM-tree designs. We further explore the design choices of LSM merge schedulers to minimize write stalls given an I/O bandwidth budget. We have conducted extensive experiments in the context of the Apache AsterixDB system and we present the results here.

Motivation & Objective

  • To address the critical problem of write stalls and performance variance in LSM-based storage systems, which undermine write throughput stability and SLA compliance.
  • To evaluate whether maximum write throughput is sustainable under high utilization, rather than just peak performance.
  • To identify optimal merge scheduler designs that minimize write stalls while maximizing throughput.
  • To validate these findings through extensive experiments in Apache AsterixDB, focusing on full and partitioned merge strategies.

Proposed method

  • Proposes a two-phase evaluation framework: first, measure maximum write throughput via continuous high-speed writes (testing phase); second, run at 95% of peak rate to assess write latency and stability (running phase).
  • Employs a closed-system model to measure peak throughput and an open-system model to evaluate real-world performance under sustained load.
  • Introduces a greedy merge scheduler that prioritizes merges to minimize the number of disk components, reducing write stalls and improving query performance.
  • For partitioned merges, evaluates single-threaded schedulers with small partition sizes, showing they can achieve stable performance if maximum throughput is measured correctly.
  • Uses Apache AsterixDB as the experimental platform to implement and evaluate various LSM-tree designs and merge schedulers under controlled workloads.
  • Employs YCSB benchmark and microbenchmarks to measure write throughput, latency, and query performance across different configurations.

Experimental results

Research questions

  • RQ1Can an LSM-tree maintain high write throughput with low latency when the data arrival rate is set close to its maximum sustainable throughput?
  • RQ2How do different merge scheduler designs (e.g., greedy, fair, single-threaded) affect write stall behavior and performance variance?
  • RQ3What is the impact of merge scheduling on query performance, particularly for secondary index lookups?
  • RQ4Can partitioned merge strategies achieve stable performance, and what are the trade-offs in maximum throughput and latency?

Key findings

  • The greedy merge scheduler significantly reduces write stalls and improves query performance by minimizing the number of disk components, making it ideal for runtime use.
  • The single-threaded scheduler should be avoided in practice due to long write stalls caused by large merges, even though it may report high peak throughput.
  • The fair scheduler is best suited for measuring maximum throughput, as it ensures fairness across all merges and avoids starvation.
  • Proper measurement of maximum write throughput is critical—LevelDB’s dynamic size ratio adjustment led to an unsustainable peak throughput that was reduced by ~1/3 after correction.
  • With correct merge scheduling, both full and partitioned merge LSM-tree designs can achieve high, stable write throughput with low latency under high utilization (95% of peak).
  • Under the eager maintenance strategy, point lookup performance becomes a bottleneck, reducing overall write throughput and increasing write latencies due to inherent throughput variance.

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.