From bd21f0cf0add090337a7fbbac11175ce0c09ce17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 14 Nov 2023 05:00:05 +0100 Subject: 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. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3