journal article·2020-12-20Open access

Performance Analysis of Thread Block Schedulers in GPGPU and Its Implications

KyungWoon Cho, Hyokyung Bahn

Applied Sciences· Volume 10· Issue 24

Abstract

GPGPU (General-Purpose Graphics Processing Unit) consists of hardware resources that can execute tens of thousands of threads simultaneously. However, in reality, the parallelism is limited as resource allocation is performed by the base unit called thread block, which is not managed judiciously in the current GPGPU systems. To schedule threads in GPGPU, a specialized hardware scheduler allocates thread blocks to the computing unit called SM (Stream Multiprocessors) in a Round-Robin manner. Although scheduling in hardware is simple and fast, we observe that the Round-Robin scheduling is not efficient in GPGPU, as it does not consider the workload characteristics of threads and the resource balance among SMs. In this article, we present a new thread block scheduling model that has the ability of analyzing and quantifying the performances of thread block scheduling. We implement our model as a GPGPU scheduling simulator and show that the conventional thread block scheduling provided in GPGPU hardware does not perform well as the workload becomes heavy. Specifically, we observe that the performance degradation of Round-Robin can be eliminated by adopting DFA (Depth First Allocation), which is simple but scalable. Moreover, as our simulator consists of modular forms based on the framework and we publicly open it for other researchers to use, various scheduling policies can be incorporated into our simulator for evaluating the performance of GPGPU schedulers.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Parallel Computing and Optimization Techniques · Distributed and Parallel Computing Systems · Interconnection Networks and Systems

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Embedded Software Research Center, Ewha University, Seoul 03760, Korea

Department of Computer Engineering, Ewha University, Seoul 03760, Korea

Funding

IITP

References (29)

Show source-provided references
1. The GPU Computing Era10.1109/MM.2010.41 ↗
2. Abadi, M., Barham, P., Chen, J., Chen, Z., Davis, A., Dean, J., Devin, M., Ghemawat, S., Irving, G., and Isard, M. (2016, January 2–4). Tensorflow: A system for large-scale machine learning. Proceedings of the 12th USENIX Symposium on Operating Systems Design and Implementation, Savannah, GA, USA.
3. Maitre, O., Lachiche, N., Clauss, P., Baumes, L., Corma, A., and Collet, P. (2009). Efficient parallel implementation of evolutionary algorithms on GPGPU cards. European Conference on Parallel Processing, Springer.10.1145/1569901.1570089 ↗
4. Garland, M. (2010, January 19–23). Parallel computing with CUDA. Proceedings of the IEEE International Symposium on Parallel & Distributed Processing (IPDPS), IEEE Computer Society, Atlanta, GA, USA.10.1109/IPDPS.2010.5470378 ↗
5. (2020, December 19). CUDA Toolkit Documentation. Available online: https://docs.nvidia.com/cuda/.
6. Lee, S., Arunkumar, A., and Wu, C. (2015, January 13–17). CAWA: Coordinated warp scheduling and cache prioritization for critical warp acceleration of GPGPU workloads. Proceedings of the 2015 ACM/IEEE 42nd Annual International Symposium on Computer Architecture (ISCA), Portland, OR, USA.10.1145/2749469.2750418 ↗
7. Ryoo, S., Rodrigues, C., Baghsorkhi, S., Stone, S., Kirk, D., and Hwu, W. (2008, January 20–23). Optimization principles and application performance evaluation of a multithreaded GPU using CUDA. Proceedings of the 13th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming, Salt Lake City, UT, USA.10.1145/1345206.1345220 ↗
8. Galvin, P., Gagne, G., and Silberschatz, A. (2003). Operating System Concepts, John Wiley & Sons.
9. Finding time quantum of round robin CPU scheduling algorithm in general computing systems using integer programming
10. Shreedhar, M., and Varghese, G. (1996, January 3). Efficient fair queuing using deficit round-robin. Proceedings of the ACM SIGCOMM Computer Communication Review, New York, NY, USA.10.1109/90.502236 ↗
11. Nieh, J., Vaill, C., and Zhong, H. (2001, January 25–30). Virtual-Time Round-Robin: An O(1) Proportional Share Scheduler. Proceedings of the 2001 USENIX AnnualTechnical Conference, Boston, MA, USA.
12. (2020, December 19). TBS Simulator. Available online: https://github.com/oslab-ewha/simtbs.
13. Lee, J., Lakshminarayana, N.B., Kim, H., and Vuduc, R. (2010, January 4–8). Many-thread aware prefetching mechanisms for GPGPU applications. Proceedings of the 2010 43rd Annual IEEE/ACM International Symposium on Microarchitecture, Atlanta, GA, USA.10.1109/MICRO.2010.44 ↗
14. Analyzing Fine-Grained Resource Utilization for Efficient GPU Workload Allocation
15. Su, C.-L., Chen, P.Y., Lan, C.-C., Huang, L.-S., and Wu, K.H. (2012, January 2–5). Overview and comparison of OpenCL and CUDA technology for GPGPU. Proceedings of the 2012 IEEE Asia Pacific Conference on Circuits and Systems, Kaohsiung, Taiwan.10.1109/APCCAS.2012.6419068 ↗
16. Jia, Z., Maggioni, M., Smith, J., and Scarpazza, D.P. (2019). Dissecting the NVidia Turing T4 GPU via Microbenchmarking. arXiv Preprint.
17. GPGPU performance estimation with core and memory frequency scaling10.1109/TPDS.2020.3004623 ↗
18. Andersch, M. (2014, January 13–19). Analyzing GPGPU pipeline latency. Proceedings of the International Summer School on Advanced Computer Architecture and Compilation for High-Performance and Embedded Systems (ACACES), Fiuggi, Italy.
19. Effective biclustering on GPU-capabilities and constraints10.15199/48.2015.08.31 ↗
20. A multi-GPU biclustering algorithm for binary datasets10.1016/j.jpdc.2020.09.009 ↗
21. Collange, S., Daumas, M., Defour, D., and Parello, D. (2010, January 17–19). Barra: A parallel functional simulator for GPGPU. Proceedings of the 2010 IEEE International Symposium on Modeling, Analysis and Simulation of Computer and Telecommunication Systems, Miami Beach, FL, USA.10.1109/MASCOTS.2010.43 ↗
22. Wang, Z., Yang, J., Melhem, R., Childers, B., Zhang, Y., and Guo, M. (2016, January 12–16). Simultaneous multikernel GPU: Multi-tasking throughput processors via fine-grained sharing. Proceedings of the 2016 IEEE International Symposium on High Performance Computer Architecture (HPCA), Barcelona, Spain.10.1109/HPCA.2016.7446078 ↗
23. Xu, Q., Jeon, H., Kim, K., Ro, W.W., and Annavaram, M. (2016, January 18–22). Warped-slicer: Efficient intra-SM slicing through dynamic resource partitioning for GPU multiprogramming. Proceedings of the 2016 ACM/IEEE 43rd Annual International Symposium on Computer Architecture (ISCA), Seoul, Korea.10.1109/ISCA.2016.29 ↗
24. Park, J.J.K., Park, Y., and Mahlke, S. (2017, January 8–10). Dynamic resource management for efficient utilization of multitasking GPUs. Proceedings of the 22nd International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS), Xi’an, China.10.1145/3037697.3037707 ↗
25. Pai, S., Thazhuthaveetil, M.J., and Govindarajan, R. (2013, January 16). Improving GPGPU concurrency with elastic kernels. Proceedings of the ACM SIGARCH Computer Architecture News, Bangalore, India.10.1145/2451116.2451160 ↗
26. Multi-GPU Design and Performance Evaluation of Homomorphic Encryption on GPU Clusters10.1109/TPDS.2020.3021238 ↗
27. Yeh, T.T., Sabne, A., Sakdhnagool, P., Eigenmann, R., and Rogers, T.G. (2017, January 4–8). Pagoda: Fine-grained GPU resource virtualization for narrow tasks. Proceedings of the 22nd ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming, Austin, TX, USA.10.1145/3018743.3018754 ↗
28. Aaron, A., Fung, W.W.L., Turner, A.E., and Aamodt, T.M. (2010, January 28–30). Visualizing complex dynamics in many-core accelerator architectures. Proceedings of the 2010 IEEE International Symposium on Performance Analysis of Systems & Software (ISPASS), White Plains, NY, USA.
29. Hughes, C., Green, R., Voskuilen, G.R., Zhang, M., and Rogers, T. (2019). GPGPU-Sim Overview. Technical Report, No. SAND2019-13453C, Sandia National Lab.