[Paper Review] A Flexible Thread Scheduler for Hierarchical Multiprocessor Machines
This paper presents a portable, hierarchical thread scheduling mechanism using 'bubbles'—logical groupings of threads with shared data affinity—to optimize performance on complex, multi-level multiprocessor architectures. By enabling applications to express task relationships dynamically, the scheduler achieves up to 30% better performance than traditional opportunistic schedulers and near-optimal results comparable to hand-tuned, non-portable solutions on a 16-processor ccNUMA system.
With the current trend of multiprocessor machines towards more and more hierarchical architectures, exploiting the full computational power requires careful distribution of execution threads and data so as to limit expensive remote memory accesses. Existing multi-threaded libraries provide only limited facilities to let applications express distribution indications, so that programmers end up with explicitly distributing tasks according to the underlying architecture, which is difficult and not portable. In this article, we present: (1) a model for dynamically expressing the structure of the computation; (2) a scheduler interpreting this model so as to make judicious hierarchical distribution decisions; (3) an implementation within the Marcel user-level thread library. We experimented our proposal on a scientific application running on a ccNUMA Bull NovaScale with 16 Intel Itanium II processors; results show a 30% gain compared to a classical scheduler, and are similar to what a handmade scheduler achieves in a non-portable way.
Motivation & Objective
- Address the challenge of efficiently scheduling threads on increasingly complex, hierarchical multiprocessor architectures such as NUMA, multicore, and SMT systems.
- Provide a portable solution that allows applications to express task and data affinity without hardcoding architecture-specific scheduling logic.
- Enable automatic, architecture-aware thread distribution that minimizes remote memory access and improves cache locality.
- Bridge the gap between portable, dynamic scheduling and the high performance of hand-optimized, non-portable schedulers.
- Develop a flexible scheduling experimentation platform that supports runtime evaluation of different distribution strategies.
Proposed method
- Introduce the 'bubble' model to represent logical groupings of threads with strong data affinity, enabling hierarchical scheduling decisions.
- Design a scheduler that interprets application-provided bubble structures and maps them to underlying hardware topology (e.g., NUMA nodes, processor sets).
- Implement the scheduler within the Marcel user-level thread library to enable runtime control and experimentation.
- Allow applications to query the system for hardware topology (e.g., number of NUMA nodes, processors per node) to guide bubble creation.
- Use dynamic scheduling with bubble bursting levels to allow flexibility in workload distribution while preserving locality.
- Support portable scheduling hints that guide the scheduler without requiring low-level system binding or process pinning.
Experimental results
Research questions
- RQ1Can a portable, application-level mechanism express task affinity in a way that enables efficient, architecture-aware thread scheduling on hierarchical multiprocessors?
- RQ2To what extent can a dynamic scheduler using high-level hints (like bubbles) match the performance of hand-optimized, non-portable schedulers?
- RQ3How does the proposed scheduler compare to opportunistic schedulers in terms of performance on NUMA and hierarchical architectures?
- RQ4Can the bubble model effectively represent varying degrees of data and task affinity in a portable and extensible way?
- RQ5What is the performance impact of using hierarchical scheduling hints on real scientific workloads with memory access locality constraints?
Key findings
- The bubble-based scheduler achieved a 30% performance improvement over a classical opportunistic scheduler on a 16-processor ccNUMA Bull NovaScale system.
- Performance using the bubble model was nearly identical to that of a manually tuned, non-portable thread binding strategy, demonstrating high efficiency.
- On the same ccNUMA system, the scheduler reduced memory access latency by keeping threads and their data on the same NUMA node, avoiding costly remote memory accesses.
- The approach was effective across multiple architectures, including Intel PC SMP and Itanium II-based NUMA systems, showing portability and adaptability.
- The method enabled automatic, architecture-aware scheduling without requiring application-level changes to thread binding or memory allocation.
- The results suggest that portable scheduling hints, when combined with a smart scheduler, can achieve near-optimal performance without sacrificing portability.
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.