Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How many logical CPUs are available to tasks in Bitbucket Pipelines?

Robert Dailey
Contributor
September 27, 2018

I use Bitbucket Pipelines to compile a C++ project with over 1000 translation units. The total build time for this is 24 minutes, which is absolutely crazy. On the build machine I have in office, it has 24 logical CPUs which yield very fast builds (5 minutes average). How many logical CPUs are available to docker containers in Bitbucket Pipelines? Being able to compile translation units in parallel for C++ builds is essential in reducing build times to cut down on cost of hosting builds using Pipelines.

2 answers

0 votes
Aaron.Ridout November 5, 2024

FYI, we were trying to read the number of CPUs from /sys/fs/cgroup/cpuset.cpus but after the https://bitbucket.org/blog/announcing-our-new-ci-cd-runtime-with-up-to-8x-faster-builds announcement; this file is empty!

The command nproc exists and returns 16 (with size: 8x)

0 votes
Robert Dailey
Contributor
September 28, 2018

No help on this? seriously?

Aaron.Ridout November 5, 2024

 

 

FYI, we were trying to read the number of CPUs from /sys/fs/cgroup/cpuset.cpus but after the https://bitbucket.org/blog/announcing-our-new-ci-cd-runtime-with-up-to-8x-faster-builds announcement; this file is empty!

The command nproc exists and returns 16 (with size: 8x)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events