Why is my build so slow?
summary
Always keep share sstate and downloads on a shared NFS or central server and never throw them away in containers, because rebuilding GCC or Rust from scratch kills time; laptop benchmarks: 1.5k corporate laptop (8 cores/16GB) ~2.5h for Sato, 3k mobile workstation (16/64) ~1h45, 5k workstation (33/64 NVMe) ~27m and second build from sstate ~48s. Use bitbake -g and PM_buildlist to spot unexpected deps, turn off unused distro FEATURES (ptest, X11), use NVMe and >=32GB RAM, and enable hash equivalence and a sstate/hash server to avoid redundant rebuilds.
AI-written summary · about
chapters (31)
- 0:00Introduction
- 0:26Why is my build so slow
- 0:52Shared State and Downloads
- 2:03Build Machine
- 3:35Ghetto Benchmark
- 4:01Price
- 4:26Mobile Workstation
- 4:51Workstation
- 5:47Build Machine Wishlist
- 7:15Graph is
- 8:09Cross compiler
- 10:02No display
- 10:12Debus
- 10:25X11 District
- 10:47distro features
- 11:48buildstats
- 12:38Piboot chart
- 13:04Build stats chart
- 14:05Autotools
- 15:08Gap
- 15:47Rust
- 17:33Boot Chart
- 18:09System Utilization
- 19:50Making Bitbakes
- 20:37Optimizing Rebuilds
- 21:33Hash your equivalence
- 21:48Short version
- 22:21More complicated version
- 22:35Example
- 24:48AutoBuilder
- 26:08Lockshare
