Bottle graphs
Authors:
Open Access
- 29 October 2013
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 48 (10) , 355-372
Abstract
Understanding and analyzing multi-threaded program performance and scalability is far from trivial, which severely complicates parallel software development and optimization. In this paper, we present bottle graphs, a powerful analysis tool that visualizes multi-threaded program performance, in regards to both per-thread parallelism and execution time. Each thread is represented as a box, with its height equal to the share of that thread in the total program execution time, its width equal to its parallelism, and its area equal to its total running time. The boxes of all threads are stacked upon each other, leading to a stack with height equal to the total program execution time. Bottle graphs show exactly how scalable each thread is, and thus guide optimization towards those threads that have a smaller parallel component (narrower), and a larger share of the total execution time (taller), i.e. to the 'neck' of the bottle. Using light-weight OS modules, we calculate bottle graphs for unmodified multi-threaded programs running on real processors with an average overhead of 0.68%. To demonstrate their utility, we do an extensive analysis of 12 Java benchmarks running on top of the Jikes JVM, which introduces many JVM service threads. We not only reveal and explain scalability limitations of several well-known Java benchmarks; we also analyze the reasons why the garbage collector itself does not scale, and in fact performs optimally with two collector threads for all benchmarks, regardless of the number of application threads. Finally, we compare the scalability of Jikes versus the OpenJDK JVM. We demonstrate how useful and intuitive bottle graphs are as a tool to analyze scalability and help optimize multi-threaded applications.Keywords
This publication has 14 references indexed in Scilit:
- Criticality stacks2013
- A study of the scalability of stop-the-world garbage collectors on multicores2013
- Exploring multi-threaded Java application performance on multicore hardware2012
- Assessing the scalability of garbage collectors on many coresACM SIGOPS Operating Systems Review, 2012
- Kremlin2011
- Multithreading in Java: Performance and Scalability on Multicore SystemsIEEE Transactions on Computers, 2010
- Performance analysis of idle programs2010
- The DaCapo benchmarks2006
- More on finding a single number to indicate overall performance of a benchmark suiteACM SIGARCH Computer Architecture News, 2004
- Implementing jalapeño in Java1999