Affiliation:
1. Massachusetts Institute of Technology, Cambridge, MA
2. Nanyang Technological University
Abstract
Multiprocessor scheduling in a shared multiprogramming environment can be structured as two-level scheduling, where a kernel-level job scheduler allots processors to jobs and a user-level thread scheduler schedules the work of a job on its allotted processors. We present a randomized work-stealing thread scheduler for fork-join multithreaded jobs that provides continual parallelism feedback to the job scheduler in the form of requests for processors. Our A-STEAL algorithm is appropriate for large parallel servers where many jobs share a common multiprocessor resource and in which the number of processors available to a particular job may vary during the job's execution. Assuming that the job scheduler never allots a job more processors than requested by the job's thread scheduler, A-STEAL guarantees that the job completes in near-optimal time while utilizing at least a constant fraction of the allotted processors.
We model the job scheduler as the thread scheduler's adversary, challenging the thread scheduler to be robust to the operating environment as well as to the job scheduler's administrative policies. For example, the job scheduler might make a large number of processors available exactly when the job has little use for them. To analyze the performance of our adaptive thread scheduler under this stringent adversarial assumption, we introduce a new technique called
trim analysis,
which allows us to prove that our thread scheduler performs poorly on no more than a small number of time steps, exhibiting near-optimal behavior on the vast majority.
More precisely, suppose that a job has work
T
1
and span
T
∞
. On a machine with
P
processors, A-STEAL completes the job in an expected duration of
O
(
T
1
/
P˜
+
T
∞
+
L
lg
P
) time steps, where
L
is the length of a scheduling quantum, and
P˜
denotes the
O
(
T
∞
+
L
lg
P
)-trimmed availability. This quantity is the average of the processor availability over all time steps except the
O
(
T
∞
+
L
lg
P
) time steps that have the highest processor availability. When the job's parallelism dominates the trimmed availability, that is,
P˜
<
T
1
/
T
∞
, the job achieves nearly perfect linear speedup. Conversely, when the trimmed mean dominates the parallelism, the asymptotic running time of the job is nearly the length of its span, which is optimal.
We measured the performance of A-STEAL on a simulated multiprocessor system using synthetic workloads. For jobs with sufficient parallelism, our experiments confirm that A-STEAL provides almost perfect linear speedup across a variety of processor availability profiles. We compared A-STEAL with the ABP algorithm, an adaptive work-stealing thread scheduler developed by Arora et al. [1998] which does not employ parallelism feedback. On moderately to heavily loaded machines with large numbers of processors, A-STEAL typically completed jobs more than twice as quickly as ABP, despite being allotted the same number or fewer processors on every step, while wasting only 10% of the processor cycles wasted by ABP.
Funder
Division of Computer and Network Systems
Advanced Cyberinfrastructure
Publisher
Association for Computing Machinery (ACM)
Cited by
30 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Scheduling Out-Trees Online to Optimize Maximum Flow;Proceedings of the 36th ACM Symposium on Parallelism in Algorithms and Architectures;2024-06-17
2. High‐performance extended actors;Software: Practice and Experience;2023-09-16
3. Adaptive scheduling of multiprogrammed dynamic-multithreading applications;Journal of Parallel and Distributed Computing;2022-04
4. Scheduling computations with provably low synchronization overheads;Journal of Scheduling;2021-10-21
5. AMCilk: A Framework for Multiprogrammed Parallel Workloads;2020 IEEE 27th International Conference on High Performance Computing, Data, and Analytics (HiPC);2020-12