Year: 2025
Type: dissertation
Abstract: Profiling machine learning (ML) workloads is an essential component of the ML application development process, as one must understand where performance bottlenecks occur to optimize the training and inference procedures. Current ML profiling tools require source code modifications and measure coarse-grained data, thereby preventing developers from understanding the underlying patterns of their ML application. There is a need for a fine-grained approach that is framework-agnostic and device-agnostic. To bridge this gap, this thesis presents ml-analyze, a profiling tool designed for ML workloads that leverages eBPF, which allows for the loading and safe execution of user-defined programs within the Linux kernel for monitoring and tracing purposes. By employing eBPF, ml-analyze can gather ML-specific details about an ML application without modifying the original source code. ml-analyze hooks into various user-space libraries that ML frameworks utilize and collects fine-grained details about their usage patterns. Using ml-analyze, developers can obtain fine-grained details about the underlying library patterns during ML application development, such as memory transfer patterns, GPU utilization metrics, function execution times, data transfer sizes, synchronization operations, and bandwidth utilization. Experiments across five different model architectures, including transformer-based models and convolutional neural networks, demonstrate that ml-analyze can efficiently collect fine-grained profiling data from ML workloads with minimal overhead of only 0.11%.
Source: Aaltodoc (Aalto University)
Author: Sigurðsson, Ingi
Institution: Aalto University
Language: English
Subfield: Computer Networks and Communications
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7076971026
