~/talk

Reducing Bazel's Memory Consumption

Talkat BazelCon 2024 · 2024-10-14..10-15· [devops-and-delivery]
links:none on file
links:none on file
slides:none on file

Three production ideas target different use cases and tradeoffs: Skyfocus runs today (Bazel 8 flags) and discards state outside a developer-specified working set, showing up to 95% retained-heap reduction for incremental local work; skeletal analysis reorders analysis into a top-down then bottom-up pass to garbage-collect as it goes, early prototypes show about a ~20% peak reduction at the cost of wall time (best for CI/clean builds); analysis caching serializes configured targets and providers to a local or remote backend, showing ~70% analysis-time savings and enabling shared caches and future distributed analysis.

AI-written summary · about

  1. 0:00Introduction
  2. 1:042023 memory optimizations
  3. 3:59Acknowledgments
  4. 4:41New memory reduction ideas
  5. 8:17Bazel's dependency graph
  6. 16:48Skeletal analysis for memory
  7. 19:56Sky Focus for builds
  8. 22:33Remote analysis caching
  9. 28:11Distributed analysis
  10. 29:40Optimization tradeoffs
  11. 30:02Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.