mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
make.sh: Set parallelism to number of CPU cores
Setting it to something higher than the number of physical CPU cores was a good idea when we used to have slow magnetic storage. That way, at least there was always one process waiting for IO. With modern fast flash-based storage, this does not hold any more since it is fast enough that we don't need to have a couple of processes ready to wait. It will probably have made work for the scheduler more challenging since more processes were ready and processes were moved around processors. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
d66e6fa806
commit
72c39057b9
2
make.sh
2
make.sh
@@ -222,7 +222,7 @@ configure_build() {
|
||||
# 128MB of memory. Therefore we find out how
|
||||
# many processes fit into memory.
|
||||
local mem_max=$(( ${SYSTEM_MEMORY} / 128 ))
|
||||
local cpu_max=$(( ${SYSTEM_PROCESSORS} + 1 ))
|
||||
local cpu_max=$(( ${SYSTEM_PROCESSORS} ))
|
||||
|
||||
local parallelism
|
||||
if [ ${mem_max} -lt ${cpu_max} ]; then
|
||||
|
||||
Reference in New Issue
Block a user