FireCRaCer: The Best Of Both Worlds
summary
Combines firecracker microVM with Java’s CRaC (checkpoint/restore) and CRIU-style tooling to snapshot a full Linux VM after application init and restart it in milliseconds; measured cold boot under 200 ms, snapshot restore examples under 10 ms and a sparse snapshot file ~300 MB that only requires ~38 MB of pages on first demand. Shows three modes: unmodified JDK snapshots, CRaC-enabled JDK hooks for safe resource handling, and a JVMTI agent approach; demos work end-to-end and are already used in Amazon Lambda.
AI-written summary · about
chapters (13)
- 0:00Introduction and speaker intro
- 1:52What is FireCracker VM
- 4:00FireCracker architecture overview
- 14:29Introducing CRaC project
- 19:50CRaC demo with unmodified JDK
- 29:13FireCracker and CRaC combination
- 32:02FireCracker snapshot demo
- 41:12CRaC with JVM TI agent
- 51:18Native memory tracking basics
- 59:27Memory visualization demo
- 1:07:37Memory optimization techniques
- 1:11:33Comparison with GraalVM
- 1:15:56Future of snapshotting in Java
