6 Mar
2023
6 Mar
'23
20:36
Citeren Andreas Schwab
On Mär 04 2023, Arjen de Korte wrote:
Is there a way to limit the requested number of parallel build jobs in the _constraints file, or is the only way to put this in the spec file like '%cmake_build --jobs 4'?
You can use the %limit_build macro (from the memory-constraints package) to limit the number of jobs according to the given memory consumption. That takes the available memory on the worker into account, so that a bigger worker may run with more jobs.
This was exactly what I was looking for, thanks!