rh-bkr: limit build jobs from 20 to cores*2

We see sometimes when we have -j20 some OOM kills. Let's use proc*2.
This commit is contained in:
Vladimír Beneš 2025-09-16 12:34:20 +02:00
parent 9c676e4e2c
commit 8d7dc96b5d

View file

@ -260,7 +260,8 @@ if [[ "$DO_TEST_BUILD" == yes ]]; then
--with-systemd-logind=yes \
--with-consolekit=yes
make -j20
# We see some OOM when we have 8 cores and 12GB RAM, lowering to 16 from 20.
proc=$(nproc); make -j$((proc*2))
make check -k
fi
fi