False Sharing Problems in Cluster-Based Disk Arrays

Hai Jin, Kai HwangSAC 1999

TL;DR

This paper investigates "false sharing," a performance bottleneck in cluster-based disk arrays, a critical component for modern high-performance computing. The authors identify and precisely define two main types of false sharing – parity and data – and analyze their occurrence in different cluster-based disk array architectures, offering insights for optimizing these systems.

What Problem Does This Paper Address?

As computing clusters become increasingly prevalent, especially for I/O-intensive applications like multimedia and massive parallel computing, the need for efficient and highly available storage systems is paramount. Traditional Redundant Arrays of Independent Disks (RAID) offer reliability but struggle with site-wide disasters. Cluster-based disk arrays aim to extend RAID's capabilities by distributing storage across multiple workstations, providing higher availability and enabling a "single I/O space" for the cluster. However, a significant performance issue, known as "false sharing," can arise in these distributed systems. False sharing occurs when different processors (or nodes in a cluster) access different data objects that happen to reside within the same cache line or memory page, leading to unnecessary coherence operations and reduced performance. This paper specifically addresses how false sharing manifests in cluster-based disk arrays, which are essentially distributed storage systems, and how it impacts their performance.

Methods

The authors analyze false sharing in cluster-based disk arrays by first categorizing them into two main architectural types:

  1. Cluster-based Disk Array Distributed within Cluster: In this model, individual disks or disk arrays are attached to separate workstations, and the entire collection is presented as a single storage system. The paper uses the Redundant Arrays of Distributed Disks (RADD) as an example.
  2. Cluster-based Disk Array Directly Attached to the Cluster: Here, storage devices are directly connected to the network and shared by all nodes, exemplified by Network-attached Secure Disks (NASD).

The core of their method involves identifying scenarios where false sharing occurs within these architectures. They distinguish between two primary types of false sharing:

  • Parity False Sharing: This occurs when different nodes modify parity information related to data blocks, even if the data blocks themselves are not truly shared. This is particularly relevant in RAID systems where parity is crucial for data recovery.
  • Data False Sharing: This happens when different nodes access different parts of the same data block, leading to contention for that block's coherence information.

To formalize their findings, the authors provide precise mathematical definitions of parity and data false sharing using set theory, considering factors like disk number, block number, offset, and data length.

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • False Sharing is a Real Problem for Cluster Storage: While false sharing is a known issue in shared-memory systems, this paper highlights its significant impact on cluster-based disk arrays, which are becoming increasingly important for I/O-intensive workloads.
  • Two Faces of False Sharing: The paper clearly delineates "parity false sharing" and "data false sharing," providing a structured way to understand and analyze the problem in the context of distributed storage.
  • Architecture Matters: The way cluster-based disk arrays are architected (distributed vs. directly attached) influences how false sharing manifests and its potential severity.
  • Data Access Granularity is Key: The authors pinpoint that false sharing, in both its forms, often stems from accessing fragments of a block rather than entire blocks, a common scenario in many real-world applications.
  • Formal Definitions for Precision: The use of set theory to define false sharing provides a rigorous foundation for further research and analysis in this area.

Key Results

The paper doesn't present quantitative performance results from experiments. Instead, its key results are:

  • Identification and Classification: The paper successfully identifies and classifies false sharing problems in cluster-based disk arrays into two distinct categories: parity false sharing and data false sharing.
  • Scenario Analysis: It provides illustrative scenarios for both types of false sharing within the two main cluster-based disk array architectures (distributed within cluster and directly attached).
  • Formal Definitions: Precise, set-theoretic definitions for parity and data false sharing are presented, offering a formal framework for understanding and analyzing these issues. The paper suggests that data false sharing inherently implies parity false sharing.

Limitations and Future Work

  • Lack of Empirical Evaluation: The paper focuses on theoretical analysis and scenario illustration. It acknowledges the problem but does not provide empirical data or performance measurements to quantify the impact of false sharing in the discussed architectures.
  • Focus on Specific Architectures: While the paper discusses two general architectures, the analysis is primarily illustrated with examples like RADD and NASD. A broader range of cluster-based disk array designs might exhibit different false sharing characteristics.
  • Future Work: The authors imply that understanding these false sharing problems is crucial for improving the on-line performance of storage systems. Future work would likely involve developing mitigation strategies and performance optimization techniques based on these findings. The paper suggests that the data access of fragments of a block is a primary source of false sharing, implying that solutions might involve optimizing how data is accessed or cached at finer granularities than traditional blocks.

Summary updated

BibTeX
@inproceedings{jin1999false,
  author = {Hai Jin and Kai Hwang},
  title = {{False Sharing Problems in Cluster-Based Disk Arrays}},
  booktitle = {SAC},
  year = {1999},
  doi = {10.1145/298151.298421},
}
Figure