Continuously measuring critical section pressure with the free-lunch profiler
Authors:
Open Access
- 15 October 2014
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 49 (10) , 291-307
Abstract
Today, Java is regularly used to implement large multi-threaded server-class applications that use locks to protect access to shared data. However, understanding the impact of locks on the performance of a system is complex, and thus the use of locks can impede the progress of threads on configurations that were not anticipated by the developer, during specific phases of the execution. In this paper, we propose Free Lunch, a new lock profiler for Java application servers, specifically designed to identify, in-vivo, phases where the progress of the threads is impeded by a lock. Free Lunch is designed around a new metric, critical section pressure (CSP), which directly correlates the progress of the threads to each of the locks. Using Free Lunch, we have identified phases of high CSP, which were hidden with other lock profilers, in the distributed Cassandra NoSQL database and in several applications from the DaCapo 9.12, the SPECjvm2008 and the SPECjbb2005 benchmark suites. Our evaluation of Free Lunch shows that its overhead is never greater than 6%, making it suitable for in-vivo use.Keywords
Funding Information
- Agence Nationale de la Recherche (InfraJVM)
This publication has 19 references indexed in Scilit:
- On-the-fly capacity planning2013
- Debugging in the (very) large2009
- Cassandra2009
- Dynamo2007
- The DaCapo benchmarks2006
- The java.util.concurrent synchronizer frameworkScience of Computer Programming, 2005
- RaceTrack2005
- The Java memory model2005
- The Jikes Research Virtual Machine project: Building an open-source research communityIBM Systems Journal, 2005
- Thin locks1998