aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-11-14 05:00:05 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2023-11-16 00:51:19 +0100
commitbd21f0cf0add090337a7fbbac11175ce0c09ce17 (patch)
tree1f9de465a350b455ba356821da3db4e1639ca7b5 /Makefile
parentDocument that vcomponent children are unordered. (diff)
downloadcalp-bd21f0cf0add090337a7fbbac11175ce0c09ce17.tar.gz
calp-bd21f0cf0add090337a7fbbac11175ce0c09ce17.tar.xz
Limit coverage to only use half of all threads by default.
Running the tests with one threads consumes almost no memory (RAM), but the more threads the more memory is used. Running on all threads regularly caused depletion of memory, and the invocation of the OOM killer.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 16551e59..26375191 100644
--- a/Makefile
+++ b/Makefile
@@ -102,7 +102,7 @@ install: all calp-release
unit-test-deps: calp $(GO_UNIT_TESTS) $(GO_FILES) $(TEST_FILES)
-THREADS = $(shell ./cpucount)
+THREADS = $(shell echo $$(( $(shell ./cpucount) / 2 )))
# TODO (current-processor-count)
$(COV_FILE): cpucount unit-test-deps