What does the specifying jobs [1] in the _constraints file actually do? I expected it to work similarly as specifying 'osc build --jobs N' on the command line, but looking in the logs of a remote build server, it see that it actually runs with a higher number '+ /usr/bin/make -O VERBOSE=1 -j8'. 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'? [1] https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.build_job_c...
On Samstag, 4. März 2023, 17:13:18 CET Arjen de Korte wrote:
What does the specifying jobs [1] in the _constraints file actually do?
I expected it to work similarly as specifying 'osc build --jobs N' on the command line, but looking in the logs of a remote build server, it see that it actually runs with a higher number '+ /usr/bin/make -O VERBOSE=1 -j8'.
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'?
it is the opposite, it is canceling out any worker which has less than X jobs configured. So the job will only be assigned to workers which are called using --jobs X during dispatching ...
[1] https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.build_job_c...
--
Adrian Schroeter
On 3/6/23 20:45, Adrian Schröter wrote:
On Samstag, 4. März 2023, 17:13:18 CET Arjen de Korte wrote:
What does the specifying jobs [1] in the _constraints file actually do?
I expected it to work similarly as specifying 'osc build --jobs N' on the command line, but looking in the logs of a remote build server, it see that it actually runs with a higher number '+ /usr/bin/make -O VERBOSE=1 -j8'.
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'?
it is the opposite, it is canceling out any worker which has less than X jobs configured. So the job will only be assigned to workers which are called using --jobs X during dispatching ...
[1] https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.build_job_c...
I think the documentation could do with some clarification here. "To require a minimal number of pre-confiured parallel jobs for the build job. This limits the parallel wanted jobs for the build tooling, but is actually not a hardware requirement." As a native english speaker its pretty easy to interpret the second sentence as limiting the number of parallel jobs that can run. Is there a good place to create bug reports for obs documentation? Cheers -- Simon Lees (Simotek) http://simotek.net Emergency Update Team keybase.io/simotek SUSE Linux Adelaide Australia, UTC+10:30 GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B
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. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."
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!
participants (4)
-
Adrian Schröter
-
Andreas Schwab
-
Arjen de Korte
-
Simon Lees