Re:Azul launches pauseless gc jvm for unmodified linux
by jules on Tuesday November 08, 2011 @01:09PM
(#3211925)
How did they do it? I thought that their GC critically relied on virtual memory support that current OSes do not provide, hence the need to run virtualized.
[ Parent
| on HN ]
Re:Azul launches pauseless gc jvm for unmodified linux
by bascule on Tuesday November 08, 2011 @01:49PM
(#3212147)
Looks like it uses a kernel interaction of some sort to implement memory barriers in software (whereas Vega provided hardware memory barriers):
http://www.azulsystems.com/products/zing/c4-java-garbage-col...
Re:Azul launches pauseless gc jvm for unmodified linux
by aidenn0 on Tuesday November 08, 2011 @01:47PM
(#3212140)
I bet they just sacrifice granularity and use the MMU to do what they need. Unmap an entire page and handle the segfault would work, but be not as good as the VTD stuff they use in the hypervisor version.
Re:Azul launches pauseless gc jvm for unmodified linux
by rayiner on Tuesday November 08, 2011 @02:34PM
(#3212376)
That's roughly what they do in the hypervisor version too (protection is at page granularity). The big problem is that this causes major suckage on an unmodified kernel because mprotect() changes mappings synchronously and only works on a linear region at a time. So basically every page that gets scanned involves a separate global TLB shootdown.
The Azul collector doesn't need the changes in page protection to be visible immediately, so their kernel patch allows batching together the changes and committing in a single operation.
As far as I can tell from reading their whitepaper, however, they still require kernel patches.
Re:Azul launches pauseless gc jvm for unmodified linux
by Jach on Tuesday November 08, 2011 @01:39PM
(#3212102)
Maybe they contributed a kernel patch?