mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-27 01:10:38 +01:00
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:
parent
9c676e4e2c
commit
8d7dc96b5d
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue