The Community for Technology Leaders
Proceedings. 13th International Conference on Parallel Architecture and Compilation Techniques, 2004. PACT 2004. (2004)
Antibes Juan-les-Pins, France
Sept. 29, 2004 to Oct. 3, 2004
ISSN: 1089-795X
ISBN: 0-7695-2229-7
pp: 255-266
Takeshi Ogasawara , Tokyo Research Laboratory, IBM Japan
Hideaki Komatsu , Tokyo Research Laboratory, IBM Japan
Toshio Nakatani , Tokyo Research Laboratory, IBM Japan
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.<div></div> 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 bench-marking 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.
INDEX TERMS
null
CITATION

H. Komatsu, T. Ogasawara and T. Nakatani, "TO-Lock: Removing Lock Overhead Using the Owners' Temporal Locality," Proceedings. 13th International Conference on Parallel Architecture and Compilation Techniques, 2004. PACT 2004.(PACT), Antibes Juan-les-Pins, France, 2004, pp. 255-266.
doi:10.1109/PACT.2004.10001
86 ms
(Ver 3.3 (11022016))