SmartStealing
Authors:
Open Access
- 8 September 2015
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 170-181
Abstract
Parallel garbage collection has been used to speedup the collection process on multicore architectures. Similar to other parallel techniques, balancing the workload among threads is critical to ensuring good overall collection performance. To this end, work stealing is employed by the current state-of-the-art Java Virtual Machine, OpenJDK, to keep GC threads from idling during a collection process. However, we found that the current algorithm is not efficient. Its usage can often cause GC performance to be worse than when work stealing is not used. In this paper, we identify three factors that affect work stealing efficiency: determining tasks that can benefit from stealing, frequency with which to attempt stealing, and performance impacts of failed stealing attempts. Based on this analysis, we propose SmartStealing, a new algorithm that can automatically decide whether to attempt stealing at a particular point during execution. If stealing is attempted, it can efficiently identify a task to steal from. We then compare the collection performances when (i) the default work stealing algorithm is used, (ii) work stealing is not used at all, and (iii) the SmartStealing approach is used. Without modifying the remaining garbage collection system, the evaluation result shows that SmartStealing can reduce the parallel GC execution time for 19 of the 21 benchmarks. The average reduction is 50.4% and the highest reduction is 78.7%. We also investigate the performances of SmartStealing on NUMA and UMA architectures.Keywords
Funding Information
- Army Research Office (W911NF-13-1-0154)
- Defense Advanced Research Projects Agency (FA8750-14-2-0053)
This publication has 30 references indexed in Scilit:
- Factors affecting scalability of multithreaded Java applications on manycore systems2015
- Bottle graphsACM SIGPLAN Notices, 2013
- Scalable concurrent and parallel markACM SIGPLAN Notices, 2012
- Looking back on the language and hardware revolutionsACM SIGARCH Computer Architecture News, 2011
- NUMA-aware memory manager with dominant-thread-based copying GC2009
- NUMA-aware memory manager with dominant-thread-based copying GCACM SIGPLAN Notices, 2009
- Idempotent work stealingACM SIGPLAN Notices, 2009
- MicrophaseACM SIGPLAN Notices, 2007
- AS-GC: An Efficient Generational Garbage Collector for Java Application ServersLecture Notes in Computer Science, 2007
- The DaCapo benchmarksACM SIGPLAN Notices, 2006