Skip to content

Increase make parallelism to use all CPU cores#96

Open
tnikolova82 wants to merge 1 commit intomainfrom
fix-node-build-parallelism
Open

Increase make parallelism to use all CPU cores#96
tnikolova82 wants to merge 1 commit intomainfrom
fix-node-build-parallelism

Conversation

@tnikolova82
Copy link

Summary

  • Changes make -j4 to make -j$(nproc) to use all available CPU cores instead of hardcoded 4 jobs
  • Removes unnecessary sudo from apt-get commands in python recipe (build containers run as root)

Motivation

This significantly reduces compilation time for large dependencies like Node.js:

  • Before: ~1h15m with -j4 on typical CI workers (4-12 cores)
  • After: ~30m with -j$(nproc) on 12-core workers
  • Reduces exposure to worker infrastructure failures during long builds

Testing

Part of fix for Node.js LTS build failures in buildpacks-ci dependency-builds pipeline (builds #29-#33).

Changes apply to both cflinuxfs4 and legacy recipe paths.

Related

1. Increase make parallelism from -j4 to -j$(nproc): Use all available
   CPU cores instead of hardcoded 4 jobs. This significantly reduces
   compilation time for large dependencies like Node.js (from ~1h15m to
   potentially <30m), reducing exposure to worker infrastructure issues.

2. Remove sudo from apt-get in python recipe: Build containers run as
   root, so sudo is unnecessary and may cause issues.

Changes apply to both cflinuxfs4 and legacy recipe paths.

Part of fix for Node.js LTS build failures in buildpacks-ci
dependency-builds pipeline (#29-#33).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant