From 2e4f748e3dcca8241bdb76e15a771fa67360fd44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Bene=C5=A1?= Date: Tue, 16 Sep 2025 13:35:51 +0200 Subject: [PATCH] rh-bkr: limit build jobs for meson from cores+2 to cores We see sometimes when we have the default cores+2 some OOM kills. Let's use cores. --- contrib/rh-bkr/build-from-source.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/rh-bkr/build-from-source.sh b/contrib/rh-bkr/build-from-source.sh index 10c20afe97..a681c5521d 100755 --- a/contrib/rh-bkr/build-from-source.sh +++ b/contrib/rh-bkr/build-from-source.sh @@ -224,8 +224,8 @@ if [[ "$DO_TEST_BUILD" == yes ]]; then -Dnft=/usr/bin/nft \ -Dnbft=${_WITH_NBFT} - ninja -C ./build - ninja test -C ./build + ninja -j$(nproc) -C ./build + ninja test -j$(nproc) -C ./build else NOCONFIGURE=yes ./autogen.sh @@ -260,7 +260,7 @@ if [[ "$DO_TEST_BUILD" == yes ]]; then --with-systemd-logind=yes \ --with-consolekit=yes - # We see some OOM when we have 8 cores and 12GB RAM, lowering to 16 from 20. + # 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