Boosting the performance of virtual machines with Jump-Start
Jump-Start cuts JIT warm-up overhead in HHVM by having a small slice of the fleet collect profiling data during Facebook's phased rollout. That data is shared with the remaining servers, so they skip the profiling compile-and-run step. Profile data from the ~2% of servers restarted in phase C2 is reused by the servers restarted in phase C3. Deployed across Facebook's data centers, it reduces HHVM warm-up overhead by 54.9% and, because the profiling can be more thorough, also improves steady-state performance by 5.4%.
Related posts
- Redesigning the HHVM JIT compiler for better performance
Meta Engineering hardMasterHHVM's JIT originally compiled tracelets, maximal type-specialized bytecode sequences formed by inspecting live VM state. Tracelets end at unknown types or branches, which causes repeated type guards, register/memory shuffling at boundaries, and blocks cross-tracelet optimizations such as loop-invariant hoisting. Facebook redesigned it as a multi-gear system: a profiling gear reuses the tracelet JIT with counters after type guards to gather block frequencies and types, and an optimizing gear recompiles hot paths as larger regions with arbitrary control flow. Getting there meant rewriting most optimization passes, which had relied on acyclic tracelets. Longer traces alone cut webserver CPU by about 5% in 2014, and the full redesign cut it by about 15%. Profiles also drive code layout, method dispatch, partial inlining, guard relaxation and array specialization.
- Meta’s Full-stack HHVM optimizations for GenAI
Meta Engineering mediumAdeptMeta moved GenAI inference traffic, which is long-running, I/O-heavy and latency-sensitive, onto a dedicated HHVM web tenant with its own runtime tuning, cutting latency by 30%. The isolated tier raises the usual 30-second request timeout and runs about 1,000 worker threads per host, sized by dividing host memory by the per-request memory limit, instead of a couple hundred. It also seeds the JIT cache with Jump-Start profiles from the main web tier and runs dummy warm-up requests to pre-fill config and service-discovery caches. Shadow traffic keeps the JIT cache covering code paths that open up later through real-time feature gating.
- Introducing the JetStream 3 Benchmark Suite
WebKit hardMasterJetStream 3 replaces JetStream 2's separate Wasm Startup/Runtime scores with the JavaScript-style first-iteration, worst-case and average-case scoring. The old scheme broke once engines hit sub-millisecond startup that Date.now() rounded to zero, giving infinite scores. The suite also favors larger workloads over microbenchmarks. WebKit details the JavaScriptCore work behind its results. Inlining WasmGC object fields into one allocation gave about 40% on the WasmGC subtests, and removing per-object destructors gave about 40% on Dart-flute-wasm. Other work inlines bump-pointer allocation into the BBQ and OMG tiers, uses Cohen's display for constant-time subtype checks, makes priority-based non-local inlining decisions, and profiles indirect calls for guarded inlining.
- Adding the V8 CPU Profiler to v8go
Shopify Engineering mediumAdeptExposing V8's CPU profiler through v8go, the Go library for running JavaScript in V8 isolates via Cgo, came down to a choice between lazily fetching each profile node property with its own Cgo call or eagerly building the whole call tree in C++ and rebuilding it in Go from a single pointer. Cgo calls cost roughly 54 ns Go-to-C and 149 ns C-to-Go, which made eager loading look like the obvious winner. Benchmarks showed lazy loading was actually faster on a small profile (~20µs vs ~25µs), and eager loading only pulled ahead on a large tree from the Hydrogen starter template (~60µs vs ~90µs). Keeping getters over private fields leaves room to offer both modes, and the broader lesson is to benchmark rather than trust intuition and to use inputs that reflect real usage.
- Unbiased Java CPU profiling with JFR in JDK 25
Datadog Engineering mediumAdeptJDK 25 adds an experimental JFR CPU-time sampling event (CPUTimeSample) that gives unbiased CPU profiles without relying on the unsupported HotSpot AsyncGetCallTrace API. The existing ExecutionSample event samples a rotating subset of threads rather than in proportion to CPU time, which can underreport hotspots, notably in reactive workloads. Profilers such as Datadog's therefore combined JFR with SIGPROF-driven AsyncGetCallTrace and vmstructs walking, trading stability for accuracy. After the AsyncGetStackTrace JEP stalled, Oracle, SAP, Amazon and Datadog engineers built on cooperative stack walking, which records lightweight execution points and unwinds only at safepoints. Native frame support and safe on-demand stack capture are next.