Skip to main content
QUICK REVIEW

[Paper Review] Boosting Multi-Core Reachability Performance with Shared Hash Tables

Alfons Laarman, Jaco van de Pol|arXiv (Cornell University)|Apr 16, 2010
Software Testing and Debugging TechniquesComputer Science15 references42 citations
TL;DR

This paper proposes a lockless, cache-optimized shared hash table for multi-core reachability in model checking, designed to scale efficiently by minimizing false sharing and leveraging CPU cache hierarchies. It achieves up to four times faster performance than SPIN and two times faster than DiVinE by optimizing data layout, probing sequences, and bucket sizes for modern multi-core architectures.

ABSTRACT

This paper focuses on data structures for multi-core reachability, which is a key component in model checking algorithms and other verification methods. A cornerstone of an efficient solution is the storage of visited states. In related work, static partitioning of the state space was combined with thread-local storage and resulted in reasonable speedups, but left open whether improvements are possible. In this paper, we present a scaling solution for shared state storage which is based on a lockless hash table implementation. The solution is specifically designed for the cache architecture of modern CPUs. Because model checking algorithms impose loose requirements on the hash table operations, their design can be streamlined substantially compared to related work on lockless hash tables. Still, an implementation of the hash table presented here has dozens of sensitive performance parameters (bucket size, cache line size, data layout, probing sequence, etc.). We analyzed their impact and compared the resulting speedups with related tools. Our implementation outperforms two state-of-the-art multi-core model checkers (SPIN and DiVinE) by a substantial margin, while placing fewer constraints on the load balancing and search algorithms.

Motivation & Objective

  • To address the scalability limitations of shared-state storage in multi-core model checking.
  • To improve performance of explicit-state reachability by replacing static partitioning with a scalable concurrent data structure.
  • To design a hash table tailored to the memory hierarchy and loose operation semantics of model checking algorithms.
  • To enable flexible load balancing and support for various exploration strategies (e.g., pseudo-DFS) in shared-memory model checkers.
  • To provide a high-performance, lockless alternative to existing shared storage solutions in tools like SPIN and DiVinE.

Proposed method

  • Design a lockless hash table optimized for low-latency, high-throughput operations under weak consistency requirements typical in model checking.
  • Employ cache-line-aware data layout and bucket organization to reduce false sharing and improve spatial locality.
  • Use a custom probing sequence that minimizes cache misses and aligns with CPU prefetching behavior.
  • Tune critical parameters such as bucket size, cache line size, and data structure layout through extensive performance analysis.
  • Implement the hash table using POSIX shared memory to enable inter-thread state sharing in a multi-core environment.
  • Integrate the hash table into the LTSmin model checker to evaluate performance across diverse model types.

Experimental results

Research questions

  • RQ1Can a lockless, shared hash table outperform static partitioning in multi-core reachability?
  • RQ2How do low-level memory layout and cache behavior impact the performance of concurrent state storage in model checking?
  • RQ3To what extent can a custom-designed hash table scale beyond current state-of-the-art tools like SPIN and DiVinE?
  • RQ4Does a cache-optimized, lockless design enable better load balancing and algorithmic flexibility compared to thread-local or partitioned storage?
  • RQ5What are the key performance-critical parameters in a concurrent hash table for model checking workloads?

Key findings

  • The proposed shared hash table outperforms DiVinE by a factor of two and SPIN by a factor of four in reachability performance.
  • The implementation achieves superior scalability on modern multi-core CPUs by minimizing false sharing and optimizing cache line usage.
  • Small models show reduced performance due to higher cache miss rates from pointer-free, allocation-free design, but this can be mitigated with controlled use of pointers.
  • The design enables flexible load balancing, including dynamic and explicit load balancing, with only a few percent overhead compared to static balancing.
  • The solution scales beyond current state-of-the-art CPUs, as confirmed by performance analysis and parameter tuning.
  • The study reveals that architectural awareness—especially cache hierarchy awareness—is critical for high performance in parallel model checking.

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.