Why Is My Build So Slow‽
summary
Always put share State and downloads on a shared server (Yocto autobuilder runs 30 workers off one NFS), or CI rebuilds start from scratch; use bitbake -g and oe-depends to spot unexpected packages. Real numbers: a £1,500 laptop takes ~2.5 hours, a mobile workstation ~1h45, a 32-core NVMe workstation ~27 minutes. Use buildstats + pivot-chart to find bottlenecks, enable hash equivalence server to skip thousands of redundant tasks, and lock recipe hashes (bitbake hashes) when iterating locally to avoid rebuilding unrelated recipes.
AI-written summary · about
chapters (13)
- 0:00Introduction and caching
- 2:13Hardware benchmarks
- 6:05Ideal build hardware
- 7:46Analyzing dependency trees
- 11:24Build performance analysis
- 12:46Interpreting boot charts
- 14:27Bottleneck investigation
- 16:43System utilization metrics
- 17:48Optimizing rebuilds
- 18:49Hash equivalence server
- 22:04Persistent hash server
- 23:41Locking build hashes
- 26:33Q&A and conclusion
