Lock-contention-aware scheduler

Author:

Cui Yan1,Wang Yingxin1,Chen Yu1,Shi Yuanchun1

Affiliation:

1. Tsinghua University, Beijing, China

Abstract

In response to the increasing ubiquity of multicore processors, there has been widespread development of multithreaded applications that strive to realize their full potential. Unfortunately, lock contention within operating systems can limit the scalability of multicore systems so severely that an increase in the number of cores can actually lead to reduced performance (i.e., scalability collapse). Existing efforts of solving scalability collapse mainly focus on making critical sections of kernel code fine-grained or designing new synchronization primitives. However, these methods have disadvantages in scalability or energy efficiency. In this article, we observe that the percentage of lock-waiting time over the total execution time for a lock intensive task has a significant correlation with the occurrence of scalability collapse. Based on this observation, a lock-contention-aware scheduler is proposed. Specifically, each task in the scheduler monitors its percentage of lock waiting time continuously. If the percentage exceeds a predefined threshold, this task is considered as lock intensive and migrated to a Special Set of Cores (i.e., SSC). In this way, the number of concurrently running lock-intensive tasks is limited to the number of cores in the SSC, and therefore, the degree of lock contention is controlled. A central challenge of using this scheme is how many cores should be allocated in the SSC to handle lock-intensive tasks. In our scheduler, the optimal number of cores is determined online by the model-driven search. The proposed scheduler is implemented in the recent Linux kernel and evaluated using micro- and macrobenchmarks on AMD and Intel 32-core systems. Experimental results suggest that our proposal is able to remove scalability collapse completely and sustains the maximal throughput of the spin-lock-based system for most applications. Furthermore, the percentage of lock-waiting time can be reduced by up to 84%. When compared with scalability collapse reduction methods such as requester-based locking scheme and sleeping-based synchronization primitives, our scheme exhibits significant advantages in scalability, power consumption, and energy efficiency.

Funder

National Natural Science Foundation of China

Publisher

Association for Computing Machinery (ACM)

Subject

Hardware and Architecture,Information Systems,Software

Reference27 articles.

1. 380801 Power Analyzer. 2012. http://extech.com/instruments/product.asp?catid=14&prodid=205. 380801 Power Analyzer. 2012. http://extech.com/instruments/product.asp?catid=14&prodid=205.

2. Adaptive Spinning Mutexes. 2009. http://lkml.org/lkml/2009/1/14/393. Adaptive Spinning Mutexes. 2009. http://lkml.org/lkml/2009/1/14/393.

3. The kill rule for multicore

4. Experience distributing objects in an SMMP OS

Cited by 11 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. nOS-V: Co-Executing HPC Applications Using System-Wide Task Scheduling;2024 IEEE International Parallel and Distributed Processing Symposium (IPDPS);2024-05-27

2. GiantVM: A Novel Distributed Hypervisor for Resource Aggregation with DSM-aware Optimizations;ACM Transactions on Architecture and Code Optimization;2022-03-07

3. Toggle: Contention-Aware Task Scheduler for Concurrent Hierarchical Operations;Lecture Notes in Computer Science;2019

4. tScale: A Contention-Aware Multithreaded Framework for Multicore Multiprocessor Systems;2017 IEEE 23rd International Conference on Parallel and Distributed Systems (ICPADS);2017-12

5. A Distributed Process Management Model for Better Scalability on Multicore Platform;Chinese Journal of Electronics;2017-03

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3