parallel threads when building webkit

Thiago Milczarek Sayão thiago.sayao at gmail.com
Wed Apr 24 10:14:45 UTC 2024


Johan,

I often have to try to build it a few times before it succeeds (on Linux).
And I used an old Ryzen 7 1700X with 16 threads, 16GB. I have now upgraded
it, but I haven't built webkit yet. I'm really scared of it :)

So limiting the threads seems like a good idea.


Em qua., 24 de abr. de 2024 às 04:23, Johan Vos <johan.vos at gluonhq.com>
escreveu:

> Hi,
>
> When building WebKit from the sources, the perl script that invokes the
> cmake/make build (build-webkit) will by default set the number of build
> threads to the number of available cores.
> This is often a bad idea, e.g. with 20 cores and 32GB this leads to a
> freeze of the system.
>
> As far as I know, we do not allow passing the number of parallel build
> threads (I typically modify them in the perl script). We already have the
> "NUM_COMPILE_THREADS" property in the build.gradle but we do not use that
> when building webkit. We only pass `--cmakeargs` to the buildscript, and
> the number of threads is set via e.g. `--makeargs=-j16`
>
> Is there a known other way to do this, or should we add passing the
> NUM_COMPILE_THREADS via `--makeargs` in the build.gradle?
>
> - Johan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20240424/f2ed538e/attachment-0001.htm>


More information about the openjfx-dev mailing list