DocumentCode :
1564886
Title :
TO-Lock: removing lock overhead using the owners´ temporal locality
Author :
Ogasawara, Takeshi ; Komatsu, Hideaki ; Nakatani, Toshio
Author_Institution :
Tokyo Res. Lab., IBM Japan Ltd., Tokyo, Japan
fYear :
2004
Firstpage :
255
Lastpage :
266
Abstract :
The performance of locking is critical, as programming languages with built-in thread support are coming into wide use. Many techniques for optimizing Java monitors have been proposed, based on the observation that the locks are rarely contended for in many applications. However, the problem of the performance degradation in SMP environments caused by necessary serializations of the processors´ execution has not been addressed for shared objects. We propose a new algorithm for this problem. It uses simple instructions to acquire the lock by exploiting the owner locality for objects even if the ownership has migrated among the threads. Our algorithm is particularly effective for SMP environments because we can remove the overhead of the serialization caused by complex atomic operations for uncontended locks by allowing the lock operation and the code protected by the lock to be executed in parallel. We verified the safety of the algorithm by using a software tool, Spin. The experimental results of our benchmarking on an SMP machine using Intel Xeon processors showed that our algorithm can significantly improve the performance by 83% on average compared to the case using a complex atomic instruction.
Keywords :
Java; multi-threading; programming environments; software tools; storage management; system monitoring; Intel Xeon processors; Java monitor optimization; SMP environments; atomic instruction; built-in thread support; lock overhead; owner temporal locality; programming languages; spin software tool; uncontended locks; Computer languages; Degradation; Java; Laboratories; Programming profession; Protection; Software algorithms; Software safety; Software tools; Yarn;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Parallel Architecture and Compilation Techniques, 2004. PACT 2004. Proceedings. 13th International Conference on
ISSN :
1089-795X
Print_ISBN :
0-7695-2229-7
Type :
conf
DOI :
10.1109/PACT.2004.1342559
Filename :
1342559
Link To Document :
بازگشت