From 8d7dc96b5d82961843d2f38552a087fcf8dd836c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Bene=C5=A1?= Date: Tue, 16 Sep 2025 12:34:20 +0200 Subject: [PATCH] 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. --- contrib/rh-bkr/build-from-source.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/rh-bkr/build-from-source.sh b/contrib/rh-bkr/build-from-source.sh index 29c0012798..10c20afe97 100755 --- a/contrib/rh-bkr/build-from-source.sh +++ b/contrib/rh-bkr/build-from-source.sh @@ -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