Research indexJournal article
Βελτιστοποίηση χρονοπρογραμματισμού σε ετερογενείς πόρους για ροές εκτέλεσης μοντέλων μηχανικής μάθησης
Kaltsogiannis
DSpace - NTUA (National Technical University of Athens)6 Jul 2026Open access
NobleIDark:/48914/w1/20261105/15CF4B69DOI10.26240/heal.ntua.33037
Βελτιστοποίηση χρονοπρογραμματισμού σε ετερογενείς πόρους για ροές εκτέλεσης μοντέλων μηχανικής μάθησης
Kaltsogiannis · DSpace - NTUA (National Technical University of Athens) · 2026
NobleIDark:/48914/w1/20261105/15CF4B69DOI10.26240/heal.ntua.33037
Abstract
Machine Learning models are increasingly used in real-time applications, where model inference must respond to a continuous and variable stream of requests with low latency.This serving process is often deployed on heterogeneous nodes that combine CPU and GPU resources, which have different performance and power characteristics.No static scheduling policy can use these resources efficiently across the full range of load conditions.For example, a static policy that is efficient under low traffic may collapse during peaks.Conversely, a policy that performs well under high load may underutilize the system and become costly under low load.This thesis designs and implements a dynamic scheduler for serving the YOLOv10 objectdetection model on a computing node that combines a CPU and a GPU.At its core, the system uses a cost-based optimizer which, for each request, selects the pair of execution (resource, batch size) that minimizes a tunable cost function.This function balances estimated execution time and estimated energy consumption.The optimizer is combined with dynamic micro-batching on the GPU, an estimate of the arrival rate based on the ARIMA statistical model, and mechanisms that take queue backlog into account, in order to avoid uncontrolled routing to saturated resources.The system was implemented as a set of microservices using Docker and RabbitMQ, while InfluxDB and Grafana were used for monitoring and data collection.The experimental evaluation shows that the best strategy depends on the load level.The main advantage of the scheduler is its ability to adapt automatically without prior knowledge of the workload.Under medium load, it approaches the performance of an optimally configured static setup.Under high load, it reduces the estimated energy consumption compared with static policies, at the cost of a slightly higher latency and execution time.At the same time, the analysis identifies the limitations and weaknesses of the scheduler and proposes concrete directions for improvement.Overall, this thesis shows that dynamic scheduling on heterogeneous CPU/GPU systems is useful mainly when the workload is high enough for resource selection and batch size to affect the behavior of the system.In low-load conditions, a simple static policy may be preferable.As the load increases, however, dynamic decision-making becomes more valuable, because it allows the system to adapt the use of CPU, GPU and batching to the current state of the workload and the queues.