The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

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)

TAGS
AUG Leaders

Atlassian Community Events