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 条
  • [21] Contention-aware Adaptive Model Selection for Machine Vision in Embedded Systems
    Kutukcu, Basar
    Baidya, Sabur
    Raghunathan, Anand
    Dey, Sujit
    2021 IEEE 3RD INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE CIRCUITS AND SYSTEMS (AICAS), 2021,
  • [22] Contention-Aware Lock Scheduling for Transactional Databases
    Tian, Boyu
    Huang, Jiamin
    Mozafari, Barzan
    Schoenebeck, Grant
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2018, 11 (05): : 648 - 662
  • [23] CARS: A contention-aware scheduler for efficient resource management of HPC storage systems
    Liang, Weihao
    Chen, Yong
    Liu, Jialin
    An, Hong
    PARALLEL COMPUTING, 2019, 87 : 25 - 34
  • [24] A Pressure-Aware Policy for Contention Minimization on Multicore Systems
    Kundan, Shivam
    Marinakis, Theodoros
    Anagnostopoulos, Iraklis
    Kagaris, Dimitri
    ACM TRANSACTIONS ON ARCHITECTURE AND CODE OPTIMIZATION, 2022, 19 (03)
  • [25] A Case for NUMA-Aware Contention Management on Multicore Systems
    Blagodurov, Sergey
    Zhuravlev, Sergey
    Fedorova, Alexandra
    Kamali, Ali
    PACT 2010: PROCEEDINGS OF THE NINETEENTH INTERNATIONAL CONFERENCE ON PARALLEL ARCHITECTURES AND COMPILATION TECHNIQUES, 2010, : 557 - 558
  • [26] QoS and Contention-Aware Multi-Resource Reservation
    Dongyan Xu
    Klara Nahrstedt
    Duangdao Wichadakul
    Cluster Computing, 2001, 4 (2) : 95 - 107
  • [27] Endpoint Communication Contention-Aware Cloud Workflow Scheduling
    Wu, Quanwang
    Zhou, MengChu
    Wen, Junhao
    IEEE TRANSACTIONS ON AUTOMATION SCIENCE AND ENGINEERING, 2022, 19 (02) : 1137 - 1150
  • [28] Contention-Aware Cooperative Routing in Wireless Mesh Networks
    Zhang, Jin
    Zhang, Qian
    2009 IEEE INTERNATIONAL CONFERENCE ON COMMUNICATIONS, VOLS 1-8, 2009, : 174 - 178
  • [29] Contention-Aware Performance Prediction For Virtualized Network Functions
    Manousis, Antonis
    Sharma, Rahul Anand
    Sekar, Vyas
    Sherry, Justine
    SIGCOMM '20: PROCEEDINGS OF THE 2020 ANNUAL CONFERENCE OF THE ACM SPECIAL INTEREST GROUP ON DATA COMMUNICATION ON THE APPLICATIONS, TECHNOLOGIES, ARCHITECTURES, AND PROTOCOLS FOR COMPUTER COMMUNICATION, 2020, : 270 - 282
  • [30] Contention-Aware Selective Caching to Mitigate Intra-Warp Contention on GPUs
    Choo, Kyoshin
    Troendle, David
    Gad, Esraa A.
    Jang, Byunghyun
    2017 16TH INTERNATIONAL SYMPOSIUM ON PARALLEL AND DISTRIBUTED COMPUTING (ISPDC-2017), 2017, : 1 - 8