Characterizing and Optimizing the Performance of Multithreaded Programs Under Interference

被引:9
|
作者
Zhao, Yong [1 ]
Rao, Jia [1 ]
Yi, Qing [2 ]
机构
[1] Univ Texas Arlington, Arlington, TX 76019 USA
[2] Univ Colorado Colorado Springs, Colorado Springs, CO USA
基金
美国国家科学基金会;
关键词
Virtual Machine Scheduling; Multicore Systems; Parallel Performance modeling and Optimization;
D O I
10.1145/2967938.2967939
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
As virtualization becomes ubiquitous in datacenters, there is a growing interest in characterizing application performance in multi-tenant environments to improve datacenter resource management. The performance of parallel programs is notoriously difficult to reason about in virtualized environments. Although performance degradations caused by virtualization and interferences have been extensively studied, there still lacks a comprehensive understanding why parallel programs have unpredictable slowdowns when co-located with different types of workloads. This paper presents a systematic and quantitative study of multithreaded performance under interference. We design synthetic workloads to emulate different types of interference and study the behavior of parallel programs under such interferences. We find that unpredictable performance is the result of complex interplays between the design of the program, the memory hierarchy of the host system, and the CPU scheduling at the hypervisor. To understand the intricate relationships between multiple factors, we decompose parallel runtime into compute, synchronization and steal time, and use the runtime breakdown to measure program progress and identify execution inefficiency under interference. Based on these findings, we develop an online approach to predicting performance slowdown without requiring parallel programs to be completed, and devise two scheduling optimizations at the hypervisor to reduce slowdowns. Experimental results with Xen and representative parallel workloads show that the online performance prediction achieves on average less than 4.5% error and the optimizations reduce runtime slowdown by as much as 38% compared to stock Xen.
引用
收藏
页码:287 / 297
页数:11
相关论文
共 50 条
  • [1] Automatic Performance Modeling of Multithreaded Programs
    Tarvo, Alexander
    [J]. 36TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE COMPANION 2014), 2014, : 721 - 723
  • [2] Security for multithreaded programs under cooperative scheduling
    Russo, Alejandro
    Sabelfeld, Andrei
    [J]. PERSPECTIVES OF SYSTEMS INFORMATICS, 2007, 4378 : 474 - +
  • [3] Redeeming IPC as a performance metric for multithreaded programs
    Lepak, KM
    Cain, HW
    Lipasti, MH
    [J]. 12TH INTERNATIONAL CONFERENCE ON PARALLEL ARCHITECTURES AND COMPILATION TECHNIQUES, PROCEEDINGS, 2003, : 232 - 243
  • [4] Automatic performance prediction of multithreaded programs: a simulation approach
    Tarvo, Alexander
    Reiss, Steven P.
    [J]. AUTOMATED SOFTWARE ENGINEERING, 2018, 25 (01) : 101 - 155
  • [5] Delegation Locking Libraries for Improved Performance of Multithreaded Programs
    Klaftenegger, David
    Sagonas, Konstantinos
    Winblad, Kjell
    [J]. EURO-PAR 2014 PARALLEL PROCESSING, 2014, 8632 : 572 - 583
  • [6] Automatic performance prediction of multithreaded programs: a simulation approach
    Alexander Tarvo
    Steven P. Reiss
    [J]. Automated Software Engineering, 2018, 25 : 101 - 155
  • [7] A Tool to Analyze the Performance of Multithreaded Programs on NUMA Architectures
    Liu, Xu
    Mellor-Crummey, John
    [J]. ACM SIGPLAN NOTICES, 2014, 49 (08) : 259 - 271
  • [8] Analysis of multithreaded programs
    Rinard, M
    [J]. STATIC ANALYSIS, PROCEEDINGS, 2001, 2126 : 1 - 19
  • [9] Checkpointing multithreaded programs
    Carothers, Christopher D.
    Szymanski, Boleslaw K.
    [J]. Dr. Dobb's Journal, 2002, 27 (08):
  • [10] Performance Modeling of Multithreaded Programs for Mobile Asymmetric Chip Multiprocessors
    Moore, Ryan W.
    Childers, Bruce R.
    Xue, Jingling
    [J]. 2015 IEEE 17TH INTERNATIONAL CONFERENCE ON HIGH PERFORMANCE COMPUTING AND COMMUNICATIONS, 2015 IEEE 7TH INTERNATIONAL SYMPOSIUM ON CYBERSPACE SAFETY AND SECURITY, AND 2015 IEEE 12TH INTERNATIONAL CONFERENCE ON EMBEDDED SOFTWARE AND SYSTEMS (ICESS), 2015, : 957 - 963