InfoQ

InfoQ

Presentation

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

Recorded at:
Recorded at

Do You Really Get Memory?

Presented by Jevgeni Kabanov on Aug 29, 2011 Length 01:00:05     Download: MP3
     Slides
Sections
Architecture & Design,
Development
Topics
JVM ,
Virtual Machines ,
Runtimes ,
Java ,
GarbageCollection ,
Languages ,
What's Next ,
Programming ,
Performance & Scalability
 

How would you like to view the presentation?

In case you are having issues watching this video, please follow these simple steps to help us investigate the issue:
1. Right click on the video player and select Copy log
2. Paste the copied information in an email to video-issue@infoq.com (clicking this link will fill in the default details in most email clients).
Note: in case your email client hasn't automatically picked up the email subject, please include in your email the URL of the video too.
3. Done.
We will investigate the issue and get back to you as soon as possible. Thanks for helping us improve our site!
Summary
Jevgeni Kabanov creates a CPU model in Java in an attempt to explain the underlying mechanism of memory performance bottlenecks and the need for a correlated hardware, OS and JVM improvement.

Bio
Jevgeni Kabanov is the founder and CTO of ZeroTurnaround, writing the prototype of JRebel, a class reloading JVM plugin, and co-founder of two open-source projects -- Aranea and Squill. Jevgeni has been speaking at international conferences for over 5 years, including JavaPolis/Devoxx, JavaZone, JAOO, QCon, TSSJS, JFokus and so on. Twitter: @ekabanov.

About the conference
The « What's Next » conference will be the biggest Java event ever organized in France as of 2011, gathering the vibrant French community. It will gather all the most important Java experts of the world around various high-level interventions. The goal of this annual conference is to bring the audience the most up-to-date information on the new and emerging technologies around the Java platform.
  • This article is part of a featured topic series on Java
Other Memory Models by Faisal Waris Posted
Re: Other Memory Models by Jevgeni Kabanov Posted
  1. Back to top

    Other Memory Models

    by Faisal Waris

    Smalltalk MT (www.objectconnect.com) uses a very different approach to memory management.

    The objects are fixed in memory and not moved during garbage collection. Space freed by garbage objects is simply reused. I think that this implies that compaction is not done but not 100% sure.

    With fixed object locations, the object pointers can be safely passed to C/C++/OS API calls without extra heap allocation steps.

    If the application is allocating/freeing the same types of objects all the time then memory slots can be reused efficiently if the slots are tagged for a specific object type.

    With Smalltalk MT it is possible to build simple Windows DLLs which are traditionally built with C/C++ languages.

    From what I remember this model worked well in practice for server side code (at least).

  2. Back to top

    Re: Other Memory Models

    by Jevgeni Kabanov

    The objects are fixed in memory and not moved during garbage collection. Space freed by garbage objects is simply reused. I think that this implies that compaction is not done but not 100% sure.


    Java used to do the same, but since something like 1.2 the generational collector were used which have tio relocate objects. Generally, relocating object makes allocation significantly more efficient (Java allocation is just a pointer increment, faster than C++ in most cases). To allocate without relocation you need free-list handling.