[Paper Review] Efficient Resource Oblivious Algorithms for Multicores
This paper presents a resource-oblivious scheduler, Priority Work Stealing (PWS), for multicores that achieves optimal cache performance even under false sharing and block misses. By designing Hierarchical Balanced Parallel (HBP) algorithms with bounded block sharing and using gapping and limited write access techniques, PWS ensures cache miss bounds matching sequential complexity without requiring knowledge of cache or block sizes.
We consider the design of efficient algorithms for a multicore computing environment with a global shared memory and p cores, each having a cache of size M, and with data organized in blocks of size B. We characterize the class of `Hierarchical Balanced Parallel (HBP)' multithreaded computations for multicores. HBP computations are similar to the hierarchical divide & conquer algorithms considered in recent work, but have some additional features that guarantee good performance even when accounting for the cache misses due to false sharing. Most of our HBP algorithms are derived from known cache-oblivious algorithms with high parallelism, however we incorporate new techniques that reduce the effect of false-sharing. Our approach to addressing false sharing costs (or more generally, block misses) is to ensure that any task that can be stolen shares O(1) blocks with other tasks. We use a gapping technique for computations that have larger than O(1) block sharing. We also incorporate the property of limited access writes analyzed in a companion paper, and we bound the cost of accessing shared blocks on the execution stacks of tasks. We present the Priority Work Stealing (PWS) scheduler, and we establish that, given a sufficiently `tall' cache, PWS deterministically schedules several highly parallel HBP algorithms, including those for scans, matrix computations and FFT, with cache misses bounded by the sequential complexity, when accounting for both traditional cache misses and for false sharing. We also present a list ranking algorithm with almost optimal bounds. PWS schedules without using cache or block size information, and uses knowledge of processors only to the extent of determining the available locations from which tasks may be stolen; thus it schedules resource-obliviously.
Motivation & Objective
- To design efficient, resource-oblivious multithreaded algorithms for multicore systems that perform well despite cache misses and false sharing.
- To address the performance degradation caused by block misses due to shared memory access across cores, especially from false sharing.
- To develop a scheduler that does not require knowledge of cache size, block size, or processor count, yet achieves optimal performance.
- To extend cache-oblivious algorithm design to include parallelism and shared-memory contention, particularly false sharing.
- To demonstrate that HBP algorithms can be scheduled with bounds matching sequential complexity, even in the presence of block misses.
Proposed method
- Introduces Hierarchical Balanced Parallel (HBP) computations as a class of multithreaded algorithms with structural properties ensuring bounded block sharing.
- Applies a gapping technique to reduce block miss overhead in computations with more than O(1) block sharing.
- Incorporates limited access write semantics to bound the cost of shared block accesses during task execution.
- Designs the Priority Work Stealing (PWS) scheduler to deterministically schedule HBP algorithms without using cache or block size information.
- Uses a recursive task decomposition strategy that unfolds to the first level where at least p tasks are generated, enabling efficient cache utilization.
- Binds the cost of accessing shared blocks on task execution stacks to ensure performance robustness under shared-memory contention.
Experimental results
Research questions
- RQ1Can resource-oblivious scheduling achieve optimal cache performance in multicore systems when false sharing and block misses are present?
- RQ2How can HBP algorithms be structured to minimize block sharing and thus reduce false-sharing-induced delays?
- RQ3What scheduler design enables optimal performance without knowledge of cache size, block size, or number of processors?
- RQ4Can the performance of known cache-oblivious algorithms be preserved under parallel execution with shared memory contention?
- RQ5What structural properties in algorithm design allow for bounded block misses even when tasks are stolen and shared blocks are accessed?
Key findings
- The PWS scheduler achieves cache miss bounds matching the sequential complexity of HBP algorithms, even when accounting for false sharing and block misses.
- HBP algorithms, including those for scans, matrix multiplication, and FFT, are shown to be schedulable with optimal performance under PWS.
- The gapping technique effectively reduces block miss overhead in algorithms with high block sharing, improving parallel efficiency.
- The use of limited access writes ensures that shared block access costs are bounded and do not degrade performance significantly.
- The framework supports multi-level cache hierarchies, enabling optimal performance when caches are partitioned across cores.
- The approach allows for optimal use of shared caches in hierarchical multicore systems without requiring scheduler knowledge of cache parameters.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.