Skip to main content
QUICK REVIEW

[Paper Review] Analysis of Randomized Work Stealing with False Sharing

Richard Cole, Vijaya Ramachandran|arXiv (Cornell University)|Mar 21, 2011
Optimization and Search ProblemsComputer Science9 references4 citations
TL;DR

This paper analyzes randomized work stealing (RWS) in parallel computing with a focus on false sharing, a performance bottleneck caused by cache coherency protocols. It introduces the Hierarchical Tree Algorithm class and its subclass HBP algorithms, deriving improved cache miss bounds under realistic assumptions, showing that RWS achieves near-optimal performance even with false sharing when algorithms are structured to minimize inter-processor contention.

ABSTRACT

This paper analyzes the cache miss cost of algorithms when scheduled using randomized work stealing (RWS) in a parallel environment, taking into account the effects of false sharing. First, prior analyses (due to Acar et al.) are extended to incorporate false sharing. However, to control the possible delays due to false sharing, some restrictions on the algorithms seem necessary. Accordingly, the class of Hierarchical Tree algorithms is introduced and their performance analyzed. In addition, the paper analyzes the performance of a subclass of the Hierarchical Tree Algorithms, called HBP algorithms, when scheduled using RWS; improved complexity bounds are obtained for this subclass. This class was introduced in a companion paper with efficient resource oblivious computation in mind. Finally, we note that in a scenario in which there is no false sharing the results in this paper match prior bounds for cache misses but with reduced assumptions, and in particular with no need for a bounding concave function for the cost of cache misses as in prior work by Frigo and Strumpen. This allows non-trivial cache miss bounds in this case to be obtained for a larger class of algorithms.

Motivation & Objective

  • To analyze the impact of false sharing on cache miss costs in randomized work stealing (RWS) for parallel algorithms.
  • To identify algorithmic structures that minimize false sharing and its performance cost in RWS scheduling.
  • To extend prior cache complexity bounds to include false sharing effects with reduced assumptions, particularly avoiding the need for bounding concave functions.
  • To provide tighter, more practical complexity bounds for HBP algorithms—such as matrix multiplication, FFT, and sorting—under RWS scheduling.
  • To demonstrate that RWS can achieve near-optimal performance for a broader class of algorithms when false sharing is accounted for via structural constraints.

Proposed method

  • Introduces the class of Hierarchical Tree Algorithms, which organize computation in a way that minimizes inter-processor write contention and thus reduces false sharing.
  • Analyzes a subclass, HBP (Hierarchically Balanced Parallel) algorithms, using a refined model that accounts for both steals and block misses due to false sharing.
  • Derives bounds on the number of successful steals, $ S $, using probabilistic analysis under uniform random steal selection, showing $ S = O(p( rac{b+s}{s} ext{depth} + rac{b}{s}B ext{depth}))(1+a) $ with high probability.
  • Models cache miss costs as a function of $ S $, incorporating both sequential cache misses and additional block misses due to false sharing, with block miss cost bounded by $ O(S imes B) $.
  • Applies the analysis to specific algorithms (matrix multiply, FFT, sorting, list ranking) by deriving operation count $ W $, sequential cache misses $ Q $, and depth $ T_{ ext{infty}} $, then combines them with steal counts.
  • Uses the bound $ C(S,n) = O(S) $ for HBP algorithms and $ C(S,n) = O(2^j n / (M^{1/2^j}) imes ext{log} n / ext{log} M) $ for sorting to derive tight combined cache and block miss costs.

Experimental results

Research questions

  • RQ1How does false sharing affect the cache miss cost in randomized work stealing (RWS) for parallel algorithms?
  • RQ2What structural properties of algorithms can minimize false sharing and improve RWS performance?
  • RQ3Can tighter cache miss bounds be derived for RWS without requiring a concave upper bound on the cache complexity function?
  • RQ4What are the combined cache and block miss costs for HBP algorithms under RWS, and under what conditions do they match sequential performance?
  • RQ5How does the number of successful steals scale with the number of processors and algorithm depth when false sharing is present?

Key findings

  • For the depth $ \log^2 n $ algorithm (e.g., matrix multiplication), the number of successful steals is $ O(p \log n [\log n + B]) $ with high probability, and this is optimal when $ p(\log^2 n + B \log n) \leq n^3 / M^{3/2} $ and $ B^2 \leq M $.
  • For HBP algorithms like matrix transpose and FFT, the combined cache and block miss cost matches the sequential cache miss cost when $ pB(\log n + B) \leq n $, assuming $ s = \Theta(b) $ and $ a = O(1) $.
  • For the sorting algorithm, the combined cost matches sequential performance when $ pB \log M (\log \log n + B / \log B) \max\{B, M^{1/2^j}\} \leq n $, with $ j = O(1) $, under the same assumptions.
  • The analysis improves upon prior work by removing the need for a concave bounding function on cache complexity, enabling non-trivial bounds for a larger class of algorithms.
  • The list ranking algorithm, which iterates sorting $ O(\log n) $ times, has bounds no worse than $ O(\log n) $ times those of sorting, due to the total problem size being $ O(n \log n) $.
  • The connected components algorithm, which iterates list ranking $ O(\log n) $ times, inherits bounds from list ranking, with the same problem size across iterations.

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.