Algorithms for temperature-aware task scheduling in microprocessor systems

Marek Chrobak, Christoph Dürr, Mathilde Hurand, Julien Robert · DOI

TL;DR

This paper tackles the challenge of scheduling tasks on microprocessors to manage heat and prevent overheating, a critical issue for performance and system longevity. The authors introduce new algorithms and prove that optimal scheduling is NP-hard, but a 2-competitive online algorithm exists, offering a practical trade-off between performance and thermal management.

What Problem Does This Paper Address?

Modern microprocessors are incredibly powerful, but this power comes with a significant challenge: heat. As processors execute tasks, they generate heat, and if this heat isn't managed, the processor can overheat, leading to performance throttling or even damage. This phenomenon is known as dynamic thermal management (DTM). DTM systems typically reduce the processor's speed when a thermal threshold is reached, which in turn slows down all tasks.

The problem this paper addresses is how to schedule tasks before the DTM system kicks in, in a way that minimizes the need for speed throttling and maximizes the number of tasks completed on time. This is particularly tricky because different tasks generate different amounts of heat. The order in which tasks are executed can significantly impact the processor's temperature over time. Existing work often focused on multi-core systems or hardware-level solutions, but this paper focuses on the operating system's role in scheduling tasks on a single processor to proactively manage thermal behavior.

Methods

The authors model the processor's temperature dynamics with a simplified cooling mechanism: after a task with heat contribution $h$ is executed, the temperature $\tau$ at the next time step becomes $(\tau + h)/2$. The processor has a thermal threshold $T$ (normalized to 1), and tasks must be completed by their deadlines.

They explore two scenarios:

  • Offline Scheduling: All jobs are known in advance. The paper proves that finding the optimal schedule in this scenario is NP-hard, even for simplified cases. This means that for large numbers of tasks, finding the absolute best schedule is computationally infeasible.
  • Online Scheduling: Jobs arrive over time, and the algorithm must make scheduling decisions without knowing future jobs. The authors propose a class of "reasonable" deterministic algorithms and prove that any algorithm in this class is 2-competitive. This means that the number of tasks completed by such an algorithm is at least half the number of tasks completed by an optimal offline algorithm. They also provide a matching lower bound, showing that no deterministic online algorithm can do better than 2-competitive in the worst case.

Datasets

Not discussed in the paper. The paper focuses on theoretical analysis and algorithmic design, using constructed instances for proofs rather than real-world datasets.

Key Insights and Ideas

  • The order matters: Even with a single processor, the sequence of task execution significantly impacts thermal behavior and overall throughput. Scheduling "hotter" tasks before "cooler" ones can lead to a lower final temperature.
  • NP-hardness of optimal offline scheduling: The problem of finding the absolute best schedule when all jobs are known is computationally intractable for large instances. This justifies the need for efficient online algorithms.
  • 2-competitiveness for online algorithms: The paper establishes a theoretical limit for deterministic online scheduling algorithms. A 2-competitive algorithm guarantees a reasonable performance level, ensuring that at least half of the optimal throughput is achieved.
  • "Reasonable" algorithms: The concept of "reasonable" algorithms (scheduling admissible jobs and avoiding strictly dominated ones) provides a framework for analyzing a broad class of practical scheduling strategies.

Key Results

  • The offline temperature-aware task scheduling problem (1|ri, hi, Pi = 1|∑Ui) is NP-hard.
  • A reduction from 3-PARTITION is used to prove NP-hardness for the general offline case.
  • A reduction from NUMERICAL-3D-MATCHING proves NP-hardness even when all release times are 0 and deadlines are equal.
  • Any "reasonable" deterministic online algorithm for this problem is 2-competitive.
  • A lower bound of 2 is established for the competitive ratio of deterministic online algorithms.

Limitations and Future Work

  • Randomized Algorithms: The paper mentions that the lower bound can be improved to 1.5 for randomized algorithms, but the upper bound of 2 for deterministic algorithms remains. Determining the randomized competitive ratio is an open problem.
  • More Realistic Cooling Models: The paper uses a simplified cooling model. Future work could explore more complex models, such as those where frequency reduction is not a simple halving or where multiple frequency levels are available.
  • Unknown Heat Contributions: The current model assumes heat contributions are known. Investigating scenarios where these are not precisely known, but can be predicted, is a promising direction.
  • Multi-core Systems: Extending these algorithms to multi-core processors, where task migration between cores can be used for thermal management, is a significant area for future research.
  • Weighted Throughput and Other Objectives: Exploring variations of the problem with weighted jobs (prioritizing more important tasks) or different objectives like minimizing makespan or flow time would be valuable.
  • Preemption and Arbitrary Processing Times: The current model assumes unit-length jobs. Relaxing this to allow preemption and jobs with arbitrary processing times would lead to more realistic scenarios.

Summary updated

BibTeX
@article{chrobak2011algorithms,
  author = {Marek Chrobak and Christoph Dürr and Mathilde Hurand and Julien Robert},
  title = {{Algorithms for temperature-aware task scheduling in microprocessor systems}},
  journal = {Sustain. Comput. Informatics Syst.},
  year = {2011},
  doi = {10.1016/j.suscom.2011.05.009},
}
Figure