diff options
author | Damjan Marion <damarion@cisco.com> | 2017-11-13 20:09:21 +0100 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2017-11-13 20:09:23 +0100 |
commit | 9324284af8d8436ce434e3da58e8eabbe609cb56 (patch) | |
tree | 83f0f3b2d9abd6d1172c3c53fb75abc683e6a296 /dpdk | |
parent | 04f3db3847d242857b9d9d858bcdca538a1be7d7 (diff) |
Reduce number of parallel builds
With recent introduction of C++ code required memory for each compiler
instance has significantly increased causing build issues.
Currently build system spins 2 compiler instances per logical CPU core.
As CPU can hardly execute more than one thread at a time, it should be
pretty safe to change that formula so it doesn't multiply number of cpu
cores by 2 and such change will signifucantly reduce amount of memory
needed.
Change-Id: Ic829fff6e45f4caf98a6d9c1c98c53ed003039ef
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'dpdk')
-rw-r--r-- | dpdk/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dpdk/Makefile b/dpdk/Makefile index 9c9708cdabb..0f6cbce4003 100644 --- a/dpdk/Makefile +++ b/dpdk/Makefile @@ -148,7 +148,7 @@ endif # NB: GNU Make 4.2 will let us use '$(file </proc/cpuinfo)' to both test # for file presence and content; for now this will have to do. JOBS := $(if $(shell [ -f /proc/cpuinfo ] && head /proc/cpuinfo),\ - $(shell expr 2 '*' $$(grep -c ^processor /proc/cpuinfo)), 2) + $(shell grep -c ^processor /proc/cpuinfo), 2) # compiler/linker custom arguments DPDK_CPU_CFLAGS := -pie -fPIC |