Skip to Main content Skip to Navigation

Continuous and Efficient Lock Profiling for Java on Multicore Architectures

Florian David 1 
1 Regal - Large-Scale Distributed Systems and Applications
LIP6 - Laboratoire d'Informatique de Paris 6, Inria Paris-Rocquencourt
Abstract : Today, the processing of large dataset is generally parallelised and performed on computers with many cores. However, locks can serialize the execution of these cores and hurt the latency and the processing throughput. Spotting theses lock contention issues in-vitro (i.e. during the development phase) is complex because it is difficult to reproduce a production environment, to create a realistic workload representative of the context of use of the software and to test every possible configuration of deployment where will be executed the software. This thesis introduces Free Lunch, a lock profiler that diagnoses phases of high lock contention due to locks in-vivo (i.e. during the operational phase). Free Lunch is designed around a new metric, the Critical Section Pressure (CSP), which aims to evaluate the impact of lock contention on overall thread progress. Free Lunch is integrated in Hotpost in order to minimize the overhead and regularly reports the CSP during the execution in order to detect temporary issues due to locks. Free Lunch is evaluated over 31 benchmarks from Dacapo 9.12, SpecJVM08 and SpecJBB2005, and over the Cassandra database. We were able to pinpoint the phases of lock contention in 6 applications for which some of these were not detected by existing profilers. With this information, we have improved the performance of Xalan by 15% just by rewriting one line of code and identified a phase of high lock contention in Cassandra during the replay of transactions after a crash of a node. Free Lunch has never degraded performance by more than 6%, which makes it suitable to be deployed continuously in an operational environment.
Document type :
Complete list of metadata

Cited literature [76 references]  Display  Hide  Download
Contributor : ABES STAR :  Contact
Submitted on : Thursday, March 31, 2016 - 12:15:09 PM
Last modification on : Friday, January 21, 2022 - 3:21:42 AM
Long-term archiving on: : Friday, July 1, 2016 - 12:30:19 PM


Version validated by the jury (STAR)


  • HAL Id : tel-01263203, version 2


Florian David. Continuous and Efficient Lock Profiling for Java on Multicore Architectures. Systems and Control [cs.SY]. Université Pierre et Marie Curie - Paris VI, 2015. English. ⟨NNT : 2015PA066484⟩. ⟨tel-01263203v2⟩



Record views


Files downloads