# Change number of workers in make

**URL:** https://discourse.julialang.org/t/change-number-of-workers-in-make/59177
**Category:** Performance
**Tags:** build
**Created:** [April 13, 2021, 10:39am UTC](https://discourse.julialang.org/t/change-number-of-workers-in-make/59177 "2021-04-13T10:39:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![puerco-errante](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/puerco-errante/32/19468_2.png) [@puerco-errante](https://discourse.julialang.org/u/puerco-errante)
#### Post date: [April 13, 2021, 10:39am UTC](https://discourse.julialang.org/t/change-number-of-workers-in-make/59177/1 "2021-04-13T10:39:16Z")

</div>

Hi!  
I’m sorry if this is a very noob question, but I’m not very experienced with make files and I couldn’t find anything in google to help me out.

I want to `make test` but the makefile launches all 8 workers and it ends up eating all my ram. At some point some processes even fail to continue. Is there a way to change the number of workers? Some optional command for make?

Thanks in advance!  
Uriel

---

<div class="post-metadata">

### Author: ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)
#### Post date: [April 13, 2021, 11:52am UTC](https://discourse.julialang.org/t/change-number-of-workers-in-make/59177/2 "2021-04-13T11:52:07Z")

</div>

Use `-j 8`?

---

<div class="post-metadata">

### Author: ![puerco-errante](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/puerco-errante/32/19468_2.png) [@puerco-errante](https://discourse.julialang.org/u/puerco-errante)
#### Post date: [April 13, 2021, 1:19pm UTC](https://discourse.julialang.org/t/change-number-of-workers-in-make/59177/3 "2021-04-13T13:19:36Z")

</div>

I tried `make test -j 2` and `make test -j 8` and got still the same number of workers (8). Is there something I’m missing?

---

<div class="post-metadata">

### Author: ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)
#### Post date: [April 13, 2021, 1:40pm UTC](https://discourse.julialang.org/t/change-number-of-workers-in-make/59177/4 "2021-04-13T13:40:52Z")

</div>

It looks like it is hard-coded:  
[https://github.com/JuliaLang/julia/blob/4a19b753804ed0b06fab9681309941862eaa7227/test/runtests.jl#L106](https://github.com/JuliaLang/julia/blob/4a19b753804ed0b06fab9681309941862eaa7227/test/runtests.jl#L106)

You can edit that file and set `n = 4` or some such.
