Characterizing and Optimizing Hotspot Parallel Garbage Collection on Multicore Systems

被引:11
作者
Suo, Kun [1 ]
Rao, Jia [1 ]
Jiang, Hong [1 ]
Srisa-an, Witawas [2 ]
机构
[1] Univ Texas Arlington, Arlington, TX 76019 USA
[2] Univ Nebraska, Lincoln, NE USA
来源
EUROSYS '18: PROCEEDINGS OF THE THIRTEENTH EUROSYS CONFERENCE | 2018年
关键词
!text type='Java']Java[!/text] virtual machine; Garbage collection; Performance; Multicore;
D O I
10.1145/3190508.3190512
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
The proliferation of applications, frameworks, and services built on Java have led to an ecosystem critically dependent on the underlying runtime system, the Java virtual machine (JVM). However, many applications running on the JVM, e.g., big data analytics, suffer from long garbage collection (GC) time. The long pause time due to GC not only degrades application throughput and causes long latency, but also hurts overall system efficiency and scalability. In this paper, we present an in-depth performance analysis of GC in the widely-adopted HotSpot JVM. Our analysis uncovers a previously unknown performance issue the design of dynamic GC task assignment, the unfairness of mutex lock acquisition in HotSpot, and the imperfect operating system (OS) load balancing together cause loss of concurrency in Parallel Scavenge, a state-of-the-art and the default garbage collector in HotSpot. To this end, we propose a number of solutions to these issues, including enforcing GC thread affinity to aid multicore load balancing and designing a more efficient work stealing algorithm. Performance evaluation demonstrates that these proposed approaches lead to the improvement of the overall completion time, GC time and application tail latency by as much as 49.6%, 87.1%, 43%, respectively.
引用
收藏
页数:15
相关论文
共 42 条
[1]  
[Anonymous], 2015, P 15 WORKSHOP HOT TO
[2]  
Appel Andrew W, 1989, SOFTWARE PRACTICE EX
[3]  
Chen Kuo-Yi, 2011, IEEE T COMPUTERS
[4]  
Cohen Nachshon, 2015, P ACM SIGPLAN INT S
[5]  
Fan Hua, 2015, P VLDB ENDOWMENT
[6]  
Gidra Lokesh, 2013, P 21 INT C ARCH SUPP
[7]  
Gidra Lokesh, 2015, P 21 INT C ARCH SUPP
[8]  
Gidra Lokesh, 2011, P 6 WORKSH PROGR LAN
[9]  
Gog Ionel, 2015, 15 WORKSH HOT TOP OP
[10]  
Hassanein Wessam, 2016, P ACM SIGPLAN INT S