Twitter's quest for a wholly Graal runtime
summary
Twitter runs a custom OpenJDK 8 with Graal JIT to generate machine code for Scala services, backporting JVMCI and adding a small toolset (Contrail/JFR work). Dedicated-cluster benchmarks on the tweet service show about 11% CPU reduction versus C2, ~2.5% fewer GC cycles, and another ~2% from inlining tuning; the compiler adds roughly 40MB compiler footprint (metaspace + meta). Several Groal/Graal bugs are fixed, the pipeline runs in tiered mode, and the setup has operated in production for over a year.
AI-written summary · about
chapters (16)
- 0:00Introduction and motivation
- 1:03Twitter’s JVM and Graal goals
- 3:50Twitter’s JDK and Graal setup
- 5:17Why Graal over C2
- 8:06Twitter’s Graal production test
- 12:14Bugs found and fixes
- 16:36Graal stability and contributions
- 17:19Porting intrinsics for performance
- 18:48Production results and savings
- 23:02Benchmarking methodology
- 24:54Memory and CPU comparisons
- 27:02Cost savings and scalability
- 30:18Tuning Graal for better results
- 31:44Automated parameter optimization
- 32:26Official support and future
- 35:01Q&A and closing remarks
