Algorithms for scheduling malleable and nonmalleable parallel tasks

Walter Ludwig

1996 · 30 citations · 0 references

Concepts

Abstract

A malleable parallel task is one whose execution time is a function of the number of processors allotted to it. A nonmalleable parallel task is one that requires a specific number of processors. Given independent parallel tasks and m identical processors, we consider problems of constructing a nonpreemptive schedule of these tasks to minimize one of two objectives: makespan or weighted average completion time. We present a general two-step method for scheduling malleable tasks that applies to both objectives: first, choose an allotment of processors to tasks; second, using the chosen allotment, schedule the tasks as though nonmalleable. In the case of minimizing makespan, we provide an algorithm for selecting an allotment that, when coupled with existing algorithms for scheduling nonmalleable tasks, yields algorithms for scheduling malleable tasks that have the same approximation factor. As a result, we obtain a 2-approximate algorithm for scheduling malleable tasks to minimize makespan with running time O(mn). Also, in the case when the processors are arranged in a line, and the processors allotted to a task must be contiguous, we obtain a 2-approximate algorithm with running time $O(mn + n \log\sp2 n/\log \log n$). For the weighted average completion time objective, we prove a lower bound on this objective for nonmalleable task sets, and use it to prove approximation factors for three new algorithms for scheduling nonmalleable tasks: an 8-approximate algorithm for unweighted tasks, a 10.43-approximate algorithm for weighted tasks, and a max$\{{1\over1{-}\beta},{1\over2(1{-}\beta)} + 1\}$-approximate algorithm for weighted tasks that require no more than $\lceil\beta m\rceil$ processors each. We also provide three allotment selection algorithms for this objective that exhibit a tradeoff between running time and allotment quality. Putting these results together yields several algorithms for scheduling malleable tasks to minimize average completion time, including a 2-approximate algorithm for unweighted tasks with running time $O(n\sp3 + mn$) that requires a weak condition on the task execution times, and a 4-approximate algorithm for weighted tasks with running time $O(n\sp2 + mn$) that requires the same condition.