Discussion about this post

User's avatar
Antonio Cansado's avatar

To avoid the cost of creating (and removing) these thousands of files, try storing them in tmpfs. In my case it sped up build times by 30% or more compared to a fast NVMe. Even worse when TRIM (discard) kicked in.

Expand full comment
Joris Lijssens's avatar

Well we used sandboxfs for years in our Linux based builds, it solved a performance issue when very large sandboxes needed to be created (10000 files or more). It is a pity that it is no longer supported. We have a patched version for Bazel 7, but we dropped support when we moved to Bazel 8.

Expand full comment
1 more comment...

No posts

Ready for more?