Presentation is loading. Please wait.

Presentation is loading. Please wait.

Forschungszentrum Informatik, Karlsruhe Michael Philippsen and the JavaParty Team Faster Serialization and Faster RMI for Java Universität Karlsruhe and.

Similar presentations


Presentation on theme: "Forschungszentrum Informatik, Karlsruhe Michael Philippsen and the JavaParty Team Faster Serialization and Faster RMI for Java Universität Karlsruhe and."— Presentation transcript:

1 Forschungszentrum Informatik, Karlsruhe Michael Philippsen and the JavaParty Team Faster Serialization and Faster RMI for Java Universität Karlsruhe and FZI Forschungszentrum Informatik Germany

2 2 Michael Philippsen Universität Karlsruhe Faster Serialization and faster RMI Motivation Serialization and RMI are too slow for Grande Applications: Improvements are needed in three areas: – Faster serialization for Java – Faster RMI for Java – Use of non-TCP/IP networks with RMI JavaParty project works on all three areas

3 3 Michael Philippsen Universität Karlsruhe Faster Serialization and faster RMI Faster Serialization: UKA-Serialization Drop-in replacement (plus class file retrofitter) Save 76%-96% of the time needed for serialization Minor (?) incompatibilities: – targeted towards fast communication, not made for persistent objects (store objects now and reload them in x years with some future release of Java) – not yet: remote loading of byte code Some impact on Sun

4 4 Michael Philippsen Universität Karlsruhe Faster Serialization and faster RMI UKA Serialization: 5 key ideas 1Explicit marshalling is faster than automatic marshalling by means of reflection 2Slim type encoding is faster (no reflection needed) – Sun will include hook-method for it with next JDK – It is unlikely that Sun's RMI will use this hook 3Two types of reset (avoid repetition) – Sun will work on the efficiency of the internal impl. 4Better buffering and better buffer accessibility – Sun will not do that because they feel that making the buffer array visible is not very object-oriented 5float[] and double[] with one JNI entry – Hotspot guys promise to do it

5 5 Michael Philippsen Universität Karlsruhe Faster Serialization and faster RMI UKA Serialization: benchmarks Steps of improvement:

6 6 Michael Philippsen Universität Karlsruhe Faster Serialization and faster RMI Faster RMI: KaRMI Drop-in replacement with almost the same API Can exploit non-TCP/IP networks Saves up to 96% of the time needed for a remote method invocation (including UKA serialization): 80  s on Digital Alphas connected by Myrinet Minor (?) incompatibilities: – no sockets & ports at user-level – no support of undocumented RMI classes Some impact on Sun

7 7 Michael Philippsen Universität Karlsruhe Faster Serialization and faster RMI KaRMI: Grande problems of Sun's RMI RMI's transport layer cannot be replaced although high speed networks are available RMI's layers are badly documented sockets and ports at user-level API prevent use of non-TCP/IP transport RMI's implementation not optimized for speed (many temporary objects, many JNI calls, many hash tables...) RMI's distributed garbage collector cannot be replaced although there are more efficient collectors for clusters

8 8 Michael Philippsen Universität Karlsruhe Faster Serialization and faster RMI KaRMI: design Clean Interfaces between Design Layers Technology objects hide hardware

9 9 Michael Philippsen Universität Karlsruhe Faster Serialization and faster RMI Benchmark Results

10 10 Michael Philippsen Universität Karlsruhe Faster Serialization and faster RMI Conclusion & Future With UKA Serialization and KaRMI, high-performance networks can be used for Grande Applications More information and download: http://wwwipd.ira.uka.de/JavaParty/ Jini uses RMI as ist basic mechanism. With the current Jini hype, the Java Grande Forum needs your support to make a stonger impact on Sun to work on performance aspects.


Download ppt "Forschungszentrum Informatik, Karlsruhe Michael Philippsen and the JavaParty Team Faster Serialization and Faster RMI for Java Universität Karlsruhe and."

Similar presentations


Ads by Google