Experiences implementing efficient Java thread serialization, mobility and persistence

  • Authors:
  • S. Bouchenak;D. Hagimont;S. Krakowiak;N. De Palma;F. Boyer

  • Affiliations:
  • INRIA (French National Institute for Research in Computer Science and Control), 655, avenue de l'Europe, Montbonnot, 38334 St-Ismier Cedex, France;INRIA (French National Institute for Research in Computer Science and Control), 655, avenue de l'Europe, Montbonnot, 38334 St-Ismier Cedex, France;INRIA (French National Institute for Research in Computer Science and Control), 655, avenue de l'Europe, Montbonnot, 38334 St-Ismier Cedex, France;INRIA (French National Institute for Research in Computer Science and Control), 655, avenue de l'Europe, Montbonnot, 38334 St-Ismier Cedex, France;INRIA (French National Institute for Research in Computer Science and Control), 655, avenue de l'Europe, Montbonnot, 38334 St-Ismier Cedex, France

  • Venue:
  • Software—Practice & Experience - Research Articles
  • Year:
  • 2004

Quantified Score

Hi-index 0.00

Visualization

Abstract

Today, mobility and persistence are important aspects of distributed computing. They have many fields of use such as load balancing, fault tolerance and dynamic reconfiguration of applications. In this context, Java provides many useful mechanisms for the mobility of code via dynamic class loading, and the mobility or persistence of data via object serialization. However, Java does not provide any mechanism for the mobility/persistence of computation (i.e. threads).We designed and implemented a new mechanism, called Java thread serialization, that is used to build thread mobility or thread persistence. Therefore, a running Java thread can, at an arbitrary state of its execution, migrate to a remote machine where it resumes its execution, or be checkpointed on disk for possible subsequent recovery. With our services, migrating a thread is simply performed by the call of our go primitive, and checkpointing/recovering a thread is performed by the call of our store and load primitives.Several projects have recently addressed the issue of Java thread serialization, e.g. Sumatra, Wasp, JavaGo, Brakes, JavaGoX, Merpati. Some of them have attempted to minimize the overhead incurred by the thread serialization mechanism on thread performance, but none of them has been able to completely avoid this overhead.We propose a generic Java thread serialization mechanism that does not impose any performance overhead on serialized threads. This is achieved thanks to the use of type inference and dynamic de-optimization techniques. In this paper, we describe the design and implementation details of our thread serialization prototype in Sun Microsystems' JDK. We report on experiments conducted with our prototype, present a comparative performance evaluation of the main thread serialization techniques, and confirm the elimination of the performance overhead with our thread serialization mechanism. Copyright © 2003 John Wiley & Sons, Ltd.