Skip to main content
QUICK REVIEW

[Paper Review] Blade: A Data Center Garbage Collector

David Terei, Amit Levy|arXiv (Cornell University)|Apr 10, 2015
Advanced Data Storage TechnologiesComputer Science6 references6 citations
TL;DR

Blade is a garbage collection coordination API for distributed systems in garbage-collected languages that treats GC pauses as predictable failures, enabling developers to coordinate collection via failure recovery mechanisms. It eliminates GC-induced tail latency in systems like HTTP load-balancers and Raft consensus, reducing impact to a single network round-trip (48 μs) and achieving performance matching that of no GC at all.

ABSTRACT

An increasing number of high-performance distributed systems are written in garbage collected languages. This removes a large class of harmful bugs from these systems. However, it also introduces high tail-latency do to garbage collection pause times. We address this problem through a new technique of garbage collection avoidance which we call Blade. Blade is an API between the collector and application developer that allows developers to leverage existing failure recovery mechanisms in distributed systems to coordinate collection and bound the latency impact. We describe Blade and implement it for the Go programming language. We also investigate two different systems that utilize Blade, a HTTP load-balancer and the Raft consensus algorithm. For the load-balancer, we eliminate any latency introduced by the garbage collector, for Raft, we bound the latency impact to a single network round-trip, (48 μs in our setup). In both cases, latency at the tail using Blade is up to three orders of magnitude better.

Motivation & Objective

  • Many modern distributed systems are built in garbage-collected languages like Go and Java, which prevent memory bugs but introduce unpredictable, high tail-latency due to GC pause times.
  • Existing GC optimizations focus on average-case performance and fail to address tail-latency, which is critical for modern data center workloads requiring microsecond-level guarantees.
  • Application-level tuning of GC is difficult and workload-dependent, and disabling GC or switching to manual memory management sacrifices safety and productivity.
  • The paper aims to give application developers control over GC timing by integrating with system-level failure recovery mechanisms to mask GC pauses.
  • The objective is to eliminate or bound GC-related tail latency in production systems without requiring changes to the underlying GC runtime.

Proposed method

  • Blade exposes a simple API that allows the application to register callbacks before garbage collection begins, enabling coordination with failure recovery mechanisms.
  • The API enables the application to delay GC until a safe moment, such as after a network round-trip or during a known idle period.
  • It treats GC pauses as a form of controlled failure, leveraging existing system resilience patterns like request replication or leader election to mask the impact.
  • The approach is integrated into the Go runtime, allowing developers to opt-in to GC coordination without changing the language or GC implementation.
  • The system uses application-level coordination to avoid overlapping GCs across nodes, reducing end-to-end latency impact.
  • Two case studies—HTTP load-balancer and Raft consensus—demonstrate the effectiveness of Blade in real-world systems.

Experimental results

Research questions

  • RQ1Can garbage collection pauses in distributed systems be eliminated or bounded using application-level coordination rather than GC optimization?
  • RQ2Can existing failure recovery mechanisms in distributed systems be reused to mask GC pause impacts without modifying the GC runtime?
  • RQ3How does Blade compare to both default GC and disabling GC entirely in terms of end-to-end tail latency?
  • RQ4Can Blade achieve performance comparable to a system with no garbage collection at all in real-world workloads?
  • RQ5What is the performance overhead or latency impact of coordinating GCs across multiple nodes using Blade?

Key findings

  • In the HTTP load-balancer use case, Blade completely eliminated GC-related tail latency, achieving performance indistinguishable from a system with no garbage collection.
  • For the Raft consensus algorithm, Blade bounded the GC impact to a single network round-trip, measuring 48 μs in the experimental setup.
  • End-to-end latency using Blade matched the optimal performance of a system with no GC, demonstrating that GC impact can be fully masked.
  • The approach achieved up to three orders of magnitude better tail latency compared to the default Go garbage collector.
  • Blade enables high-throughput, simple GC designs by offloading latency mitigation to application-level coordination, rather than requiring complex low-latency collectors.
  • The method is generalizable and does not require changes to the GC runtime, making it applicable to other garbage-collected languages with similar APIs.

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.