tScale : A Contention-Aware Multithreaded Framework for Multicore Multiprocessor Systems

被引:1
|
作者
Cai, Miao [1 ]
Liu, Shenming [1 ]
Huang, Hao [1 ]
机构
[1] Nanjing Univ, Dept Comp Sci & Technol, Nanjing 210023, Jiangsu, Peoples R China
基金
美国国家科学基金会;
关键词
multicore; lock contention; thread scheduling; system call; LOCK;
D O I
10.1109/ICPADS.2017.00052
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
On the multicore and multiprocessor system, multithreaded applications which are kernel-intensive usually suffer from two kinds of performance issues, first one is frequent context switch between kernel/user mode. Another one is lock contention caused by non-scalable synchronization primitives (e.g., ticket spin lock) and may even result in performance degradation under heavy contention level. Unfortunately, current Linux threading model (i.e., NPTL) which adopts exception-based system call mechanism fails to reduce the excessive system call cost. Besides, conventional threading scheduler which is unconscious of lock contention also lacks the ability to limit the number of system-wide contending parallel threads. Both of them impede the application's throughput increment and may lead to the performance breakdown eventually. In this paper we propose a contention-aware threading framework to alleviate these two problems. Our proposed design is composed of two tightly contected components: system call batching via user-level thread library and a contention-aware scheduler based on non-work-conserving scheduling policy. The user-level threading library gathers multiple system call invocations transparently and deliverys these requests to the underlaying kernel working threads. Therefore, tScale improves application performance by reducing massive context switch cost. Then through continuing monitoring systemwide lock contention level and application's total throughput increment, tScale can quickly adjust the number of contending threads in order to sustain the maximum throughput. The prototype system is implemented on Linux 3.18.30 and Glibc 2.23. In microbenchmarks on a 32-core machine, experiment results show that our approach can not only improve the application throughput by up to 20% but also address the lock contention efficiently.
引用
收藏
页码:334 / 343
页数:10
相关论文
共 50 条
  • [1] Contention-Aware Scheduling on Multicore Systems
    Blagodurov, Sergey
    Zhuravlev, Sergey
    Fedorova, Alexandra
    ACM TRANSACTIONS ON COMPUTER SYSTEMS, 2010, 28 (04):
  • [2] Shuffling: A Framework for Lock Contention Aware Thread Scheduling for Multicore Multiprocessor Systems
    Pusukuri, Kishore Kumar
    Gupta, Rajiv
    Bhuyan, Laxmi N.
    PROCEEDINGS OF THE 23RD INTERNATIONAL CONFERENCE ON PARALLEL ARCHITECTURES AND COMPILATION TECHNIQUES (PACT'14), 2014, : 289 - 300
  • [3] Contention-Aware Scheduling for Asymmetric Multicore Processors
    Fan, Xiaokang
    Sui, Yulei
    Xue, Jingling
    2015 IEEE 21ST INTERNATIONAL CONFERENCE ON PARALLEL AND DISTRIBUTED SYSTEMS (ICPADS), 2015, : 742 - 751
  • [4] Delivering Fairness on Asymmetric Multicore Systems via Contention-Aware Scheduling
    Garcia-Garcia, Adrian
    Carlos Saez, Juan
    Prieto-Matias, Manuel
    EURO-PAR 2017: PARALLEL PROCESSING WORKSHOPS, 2018, 10659 : 610 - 622
  • [5] On The Evaluation of Contention-Aware List Schedulers on Multicore Cluster
    Zamith, Juliana
    Silva, Thiago
    Drummond, Lucia
    Boeres, Cristina
    Bentes, Cristiana
    2015 INTERNATIONAL SYMPOSIUM ON COMPUTER ARCHITECTURE AND HIGH PERFORMANCE COMPUTING WORKSHOP (SBAC-PADW), 2015, : 61 - 67
  • [6] Contention-Aware Fair Scheduling for Asymmetric Single-ISA Multicore Systems
    Garcia-Garcia, Adrian
    Carlos Saez, Juan
    Prieto-Matias, Manuel
    IEEE TRANSACTIONS ON COMPUTERS, 2018, 67 (12) : 1703 - 1719
  • [7] Precise contention-aware performance prediction on virtualized multicore system
    Cheng, Yuxia
    Chen, Wenzhi
    Wang, Zonghui
    Xiang, Yang
    JOURNAL OF SYSTEMS ARCHITECTURE, 2017, 72 : 42 - 50
  • [8] Hardware resources contention-aware scheduling of hard real-time multiprocessor systems
    Aceituno, Jose Maria
    Guasque, Ana
    Balbastre, Patricia
    Simo, Jose
    Crespo, Alfons
    JOURNAL OF SYSTEMS ARCHITECTURE, 2021, 118
  • [9] Contention-Aware Scheduler: Unlocking Execution Parallelism in Multithreaded Java']Java Programs
    Xian, Feng
    Srisa-an, Witawas
    Jiang, Hong
    ACM SIGPLAN NOTICES, 2008, 43 (10) : 163 - 179
  • [10] Contention-Aware Scheduler: Unlocking Execution Parallelism in Multithreaded Java']Java Programs
    Xian, Feng
    Srisa-an, Witawas
    Jiang, Hong
    OOPSLA 2008 NASHVILLE, CONFERENCE PROCEEDINGS: MUSIC CITY USA, OOPSLA, 2008, : 163 - 179