How much disk space is required for a product Yocto build?

Yocto builds hog disk space. There are a few things you can do to reduce this:

  • yoe_clean_sstate (cleans up your sstate)
  • remove the tmp/work directory (can be easily re-populated with sstate)
  • share downloads and sstate-cache between builds

But, in the end, if you are supporting a full-featured project and doing regular releases from a Yocto snapshot, you’ll need ~256GB per project, especially if you are building things like QtWebEngine. Add in some test builds, work on new stuff, etc, and pretty soon you are bumping up against 1TB. Support multiple projects, and 2TB is soon gone.

If you are supporting several Yocto-based products, 2TB is probably the minimum you should consider today.

1 Like

I think it is a good observation. 2TB of SSD is a good starting point. sstate_cache folder and downloads folder can be shared across projects in yoe. So perhaps having a single directory globally for all projects is a good option to start with.

1 Like