[Paper Review] An Efficient Thread Mapping Strategy for Multiprogramming on Manycore Processors
This paper proposes the Extended Lowest Load (XLL) thread mapping strategy for manycore processors to improve load balancing in multithreaded multiprogramming environments. By dynamically assigning threads to cores based on real-time CPU utilization, XLL outperforms the native Linux scheduler in both single- and multiprogramming workloads, especially under high core and thread counts.
The emergence of multicore and manycore processors is set to change the parallel computing world. Applications are shifting towards increased parallelism in order to utilise these architectures efficiently. This leads to a situation where every application creates its desirable number of threads, based on its parallel nature and the system resources allowance. Task scheduling in such a multithreaded multiprogramming environment is a significant challenge. In task scheduling, not only the order of the execution, but also the mapping of threads to the execution resources is of a great importance. In this paper we state and discuss some fundamental rules based on results obtained from selected applications of the BOTS benchmarks on the 64-core TILEPro64 processor. We demonstrate how previously efficient mapping policies such as those of the SMP Linux scheduler become inefficient when the number of threads and cores grows. We propose a novel, low-overhead technique, a heuristic based on the amount of time spent by each CPU doing some useful work, to fairly distribute the workloads amongst the cores in a multiprogramming environment. Our novel approach could be implemented as a pragma similar to those in the new task-based OpenMP versions, or can be incorporated as a distributed thread mapping mechanism in future manycore programming frameworks. We show that our thread mapping scheme can outperform the native GNU/Linux thread scheduler in both single-programming and multiprogramming environments.
Motivation & Objective
- Address the performance degradation of traditional SMP Linux schedulers in high-core-count manycore systems under multiprogramming.
- Identify inefficiencies in existing thread mapping policies like Round-Robin (BLL) when thread counts exceed core counts or workloads vary in size.
- Develop a low-overhead, heuristic-based thread mapping technique that improves load balancing and reduces turnaround time in multithreaded, multiprogramming workloads.
- Demonstrate that thread mapping significantly impacts performance, especially for non-linearly scalable applications.
- Provide a practical, extensible solution compatible with OpenMP tasking models for future manycore programming frameworks.
Proposed method
- Measure real-time CPU utilization (time spent doing useful work) on each core to estimate current load.
- Assign each new thread to the core with the lowest current load, using a heuristic that avoids overloading already busy cores.
- Implement the XLL algorithm as a lightweight runtime mechanism, suitable for integration as a pragma or distributed thread mapper.
- Evaluate the technique using BOTS benchmarks (NQueens, Strassen, Sort, Health) on a 64-core TILEPro64 processor.
- Compare XLL against native Linux scheduler, Static mapping, and BLL (Round-Robin) under single- and multiprogramming workloads.
- Use turnaround time as the primary performance metric across multiple experimental scenarios with varying thread counts and input sizes.
Experimental results
Research questions
- RQ1How does the performance of the native Linux thread scheduler degrade as the number of cores and threads increases in a manycore system?
- RQ2To what extent can dynamic thread mapping based on real-time CPU load improve load balancing and reduce turnaround time in multiprogramming environments?
- RQ3Why does Round-Robin (BLL) mapping fail in multiprogramming scenarios with heterogeneous workloads and varying thread counts?
- RQ4Can a low-overhead heuristic based on CPU utilization outperform existing schedulers in both single- and multiprogramming workloads?
- RQ5What is the impact of thread count on application scalability, and how can optimal mapping mitigate performance degradation in non-linearly scalable applications?
Key findings
- The XLL mapping strategy significantly reduces turnaround time compared to the native Linux scheduler across all benchmarks and workloads.
- In the first multiprogramming scenario (three Health programs), XLL outperformed BLL by efficiently reusing freed cores instead of forcing thread placement on already busy ones.
- In the second scenario (four different programs running simultaneously), XLL achieved lower turnaround times for all four programs compared to Linux and BLL, demonstrating consistent load balancing.
- In the third scenario (10 identical Sort programs), XLL showed superior performance, especially when using 16 threads per program instead of 63, confirming that more threads do not always improve performance.
- The overhead of the XLL technique is negligible, even for short-running programs (a few seconds), making it suitable for real-time and high-throughput environments.
- The study confirms that thread mapping is a critical factor in performance, and that static or Round-Robin policies fail to adapt effectively to dynamic, heterogeneous workloads on manycore systems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.