# Nproc reports 32 cores on arm64

**URL:** <https://travis-ci.community/t/nproc-reports-32-cores-on-arm64/5851>\
**Category:** Multi CPU Architecture\
**Created:** [November 8, 2019, 3:24pm UTC](https://travis-ci.community/t/nproc-reports-32-cores-on-arm64/5851 "2019-11-08T15:24:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikic](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/nikic/32/963_2.png) [@nikic](https://travis-ci.community/u/nikic)\
**Post date:** [November 8, 2019, 3:24pm UTC](https://travis-ci.community/t/nproc-reports-32-cores-on-arm64/5851/1 "2019-11-08T15:24:07Z")

</div>

We use `-j$(nproc)` to determine parallelism for compilation and testing. On arm64, this reports 32. As this is a lot more than on other builders (which only have 2 cores), I wanted to check whether the value is accurate. If it is, great! If it isn’t it would be good to report a lower number to avoid excessive parallelism.

---

<div class="post-metadata">

**Author:** ![Michal](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/michal/32/2848_2.png) [@Michal](https://travis-ci.community/u/Michal)\
**Post date:** [November 20, 2019, 2:44pm UTC](https://travis-ci.community/t/nproc-reports-32-cores-on-arm64/5851/2 "2019-11-20T14:44:50Z")

</div>

Hi @nikic!

Thanks for testing out arm64 builds and your feedback!  
So basically, at the moment, arm64 builds are run within LXD container on LXD host. This LXD host, in case of arm64, has 32-core cpu. The basic LXD container setup is as per [CI Overview](https://docs.travis-ci.com/user/reference/overview/#approx-boot-time) - with 2 vCPUs and ca 4GB of RAM at the moment of writing this answer. The way it’s configured it allows to allocate more resources per container if required and cpu time available.

The `nproc` on arm64 indeed does report full amount of cores of underlying host, however the actual amount available for build running within LXD container is min 2vCPU + possibly some additional cpu time.

Hope it helps?

Happy building!
