Machine learning for load balancing in the Linux kernel
Open Access
- 24 August 2020
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 67-74
Abstract
The OS load balancing algorithm governs the performance gains provided by a multiprocessor computer system. The Linux's Completely Fair Scheduler (CFS) scheduler tracks process loads by average CPU utilization to balance workload between processor cores. That approach maximizes the utilization of processing time but overlooks the contention for lower-level hardware resources. In servers running compute-intensive workloads, an imbalanced need for limited computing resources hinders execution performance. This paper solves the above problem using a machine learning (ML)-based resource-aware load balancer. We describe (1) low-overhead methods for collecting training data; (2) an ML model based on a multi-layer perceptron model that imitates the CFS load balancer based on the collected training data; and (3) an in-kernel implementation of inference on the model. Our experiments demonstrate that the proposed model has an accuracy of 99% in making migration decisions and while only increasing the latency by 1.9 μs.Keywords
Funding Information
- National Science Foundation (CNS 13-37732)
- Intel Corporation
- IBM-Illinois Center for Cognitive Computing Systems Research
This publication has 7 references indexed in Scilit:
- Troodon: A machine-learning based load-balancing application scheduler for CPU–GPU systemJournal of Parallel and Distributed Computing, 2019
- Improvising process scheduling using machine learning2018
- A Machine Learning Approach for Improving Process Scheduling: A SurveyInternational Journal of Computer Trends and Technology, 2017
- The Linux scheduler2016
- Resource-Aware Task SchedulingACM Transactions on Embedded Computing Systems, 2015
- Applying Machine Learning Techniques to Improve Linux Process Scheduling2005
- Dynamically Controlled Resource Allocation in SMT Processors2004