Characterizing and optimizing hotspot parallel garbage collection on multicore systems
Authors:
Open Access
- 23 April 2018
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1-15
Abstract
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.Keywords
Funding Information
- U.S. NSF (CNS-1649502, IIS-1633753)
This publication has 32 references indexed in Scilit:
- SmartStealing2015
- Data structure aware garbage collector2015
- Don't race the memory bus: taming the GC leadfoot2015
- Understanding the causes of consistency anomalies in Apache CassandraProceedings of the VLDB Endowment, 2015
- Java in the High Performance Computing arena: Research, practice and experienceScience of Computer Programming, 2013
- Exploring multi-threaded Java application performance on multicore hardware2012
- Assessing the scalability of garbage collectors on many cores2011
- Allocation-phase aware thread scheduling policies to improve garbage collection performance2007
- Quantifying the performance of garbage collection vs. explicit memory management2005
- NINJA: Java for High Performance Numerical ComputingScientific Programming, 2002