3 ms·
That's a realtime GC and yes, you can buy a JVM from IBM that has one, they call it the Metronome collector: http://researcher.watson.ibm.com/researcher/view_g
by mike_hearn 10y ago
That's a realtime GC and yes, you can buy a JVM from IBM that has one, they call it the Metronome collector:
http://researcher.watson.ibm.com/researcher/view_group_subpage.php?id=175 http://researcher.watson.ibm.com/researcher/view_group_subpa...
Metronome has pause time in the hundreds of microseconds range. The tradeoff it makes is that, amongst other things, it requires read barriers i.e. every time you read a pointer from the heap you have to execute some extra code to interact with the GC subsystem. If you think about how often you read pointers from the heap in a typical program, well, that turns into a lot of barriers and a corresponding execution performance hit.
- mickronome 10y agoPer the linked article, if their claims are to be trusted, the barrier overhead is only 4%, which is amazingly low. Low enough that it's inconsequential for any application actually needing low pause times, if the claims are correct, which I unfortunately do not know. Funnny, I remember years ago reading one of the patents the GC is probably based on, and thinking the entire thing was brilliant.
- _ak 10y agoFWIW, Go 1.8's GC uses essentially the same techniques as Metronome.