A collaborative memory system for high-performance and cost-effective clustered architectures

Ahmad Samih, Ren Wang, Christian Maciocco, Tsung-Yuan Charlie Tai, Yan Solihin2011 · DOI

TL;DR

This paper introduces the Autonomous Collaborative Memory System (ACMS), a novel approach to dynamically share idle memory across nodes in a cluster. ACMS significantly boosts performance by reducing reliance on slow disk swapping, achieving up to 3x speedup for memory-intensive applications without negatively impacting the nodes contributing their memory.

What Problem Does This Paper Address?

Modern cluster systems, especially those with high-density, low-power nodes, are increasingly facing memory capacity challenges. As applications demand more memory, operating systems resort to swapping data to slower storage devices like HDDs or SSDs. This disk I/O is a major performance bottleneck, drastically slowing down applications and increasing power consumption. While "memory collaboration" (using free memory from other nodes) is a promising cost-effective solution, existing approaches often rely on static configurations and lack dynamic adaptation to fluctuating memory needs. This can lead to inefficient resource utilization and potential performance degradation for nodes donating memory. The paper aims to address this by proposing a dynamic, autonomous system that manages memory collaboration effectively.

Methods

The core of the proposed solution is the Autonomous Collaborative Memory System (ACMS). Its key components and methods include:

  • Node Classification Algorithm: Nodes are dynamically classified into three categories based on their real-time memory usage:
  • Memory Client: Needs more memory.
  • Memory Server: Has significant free memory to donate.
  • Memory Neutral: Has sufficient memory and neither needs nor donates. Guard bands (MEM_MIN_LOW, MEM_MIN_HIGH, MEM_MAX_LOW, MEM_MAX_HIGH) are used to prevent rapid oscillation between classifications.

  • Dynamic Memory Acquisition Protocol: A distributed protocol facilitates memory discovery, allocation, and deallocation. It uses five message types:

  • OFFERING_MEM: Broadcast by servers to announce available memory.
  • REQUESTING_MEM: Sent by clients to request memory.
  • GRANTING_MEM: Sent by servers in response to requests.
  • ACK_MEM: Acknowledges a grant, binding a client to a server.
  • RECLAIM_MEM: Allows servers to reclaim memory when their needs change.
  • Architecture: ACMS consists of an interconnect (e.g., Ethernet), collaborating nodes (clients, servers, neutrals), and a Collaborative Memory Service Manager (which can be distributed). The system leverages remote memory swapping, treating remote memory as a swap device.
  • Prototyping: The ACMS was prototyped using standard Linux systems, Ethernet, and the Network Block Device (NBD) for remote swapping. User-space threads were used for the classification and protocol implementation, avoiding kernel modifications.

Datasets

Not discussed in the paper. The evaluation uses real-world applications and benchmarks:

  • SPECCPU2006: A suite of CPU-intensive benchmarks.
  • TPC-H: A decision support benchmark.
  • Hadoop: Used for sorting workloads.
  • PostgreSQL 9.0.4: Used as the database for TPC-H.

The paper also mentions using a custom microbenchmark to analyze swapping overheads and the impact of prefetching.

Key Insights and Ideas

  • Dynamic Collaboration is Crucial: Static memory collaboration is insufficient for real-world cluster workloads, which exhibit significant temporal and spatial memory usage fluctuations. ACMS's dynamic classification and acquisition protocol are key to adapting to these changes.
  • Cost-Effectiveness of Remote Swapping: Leveraging under-utilized remote memory is a more cost-effective approach than over-provisioning local memory for peak loads.
  • QoS for Memory Servers: Providing mechanisms (like RECLAIM_MEM) for memory servers to reclaim their resources is essential to prevent performance degradation on nodes that contribute memory.
  • Network Stack and NBD are Bottlenecks: The paper identifies the TCP/IP stack and the Network Block Device (NBD) as significant overhead sources for remote swapping, more so than raw network bandwidth.
  • Kernel Swapping Limitations: Even with fast swap devices (like RAMDisk), the inherent limitations of the OS kernel's swapping mechanism (context switches, congestion waits) lead to substantial performance degradation.

Key Results

  • Performance Speedup: ACMS achieved up to 3x performance speedup for memory-intensive applications compared to a non-collaborative system.
  • Application-Specific Gains: Average speedups of 1.4x for TPC-H and 3.1x for Hadoop were observed when using remote swapping with limited local memory.
  • Minimal Impact on Memory Servers: Applications running on memory servers experienced very little performance degradation, demonstrating the effectiveness of ACMS's QoS mechanisms.
  • Overhead Analysis: Swapping to a local RAMDisk (avoiding network overhead) showed a ~50% improvement over swapping to a remote machine, highlighting the network stack's impact. CPU utilization dropped significantly during swapping, indicating inefficient use of processing power.

Limitations and Future Work

  • Limitations:
    • The prototype uses Ethernet and TCP/IP, which introduce overhead.
  • The current implementation relies on NBD, which has its own performance limitations.
  • The analysis of optimizations is limited, with only prefetching being fully evaluated.
  • Future Work:
    • Investigate direct remote memory access channels (e.g., RDMA over Ethernet) to reduce network overhead.
  • Explore hardware accelerators for page fault handling to bypass kernel overhead.
  • Further analyze and implement other optimization techniques, such as adaptive page prefetching and manipulating virtual management attributes.
  • Study the scalability of ACMS for very large clusters (e.g., 1000+ nodes) and optimize inter-node communication and server/client selection for energy efficiency.

Summary updated

Abstract

With the fast development of highly integrated distributed systems (cluster systems), especially those encapsulated within a single platform [28, 9], designers have to face interesting memory hierarchy design choices that attempt to avoid disk storage swapping. Disk swapping activities slow down application execution drastically. Leveraging remote free memory through Memory Collaboration has demonstrated its cost-effectiveness compared to overprovisioning for peak load requirements. Recent studies propose several ways on accessing the under-utilized remote memory in static system configurations, without detailed exploration on the dynamic memory collaboration. Dynamic collaboration is an important aspect given the run-time memory usage fluctuations in clustered systems.
BibTeX
@misc{samih2011collaborative,
  author = {Ahmad Samih and Ren Wang and Christian Maciocco and Tsung-Yuan Charlie Tai and Yan Solihin},
  title = {{A collaborative memory system for high-performance and cost-effective clustered architectures}},
  year = {2011},
  doi = {10.1145/2377978.2377979},
}

Loading related content...

Figure