From 607ad2b370822491f074f06a4e751c23cfefce05 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 11 Oct 2021 14:19:42 +0200 Subject: executor: setup cgroups once Currently we setup cgroups on every test process start (along with sandbox creation). That's unnecessary because that's global per-machine setup. Move cgroup setup into setup section that's executed once per machine from pkg/host.Setup. --- executor/executor.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'executor/executor.cc') diff --git a/executor/executor.cc b/executor/executor.cc index 25e3be69d..76b1d284a 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -1522,6 +1522,7 @@ void setup_features(char** enable, int n) flag_debug = true; #if SYZ_HAVE_FEATURES setup_sysctl(); + setup_cgroups(); #endif for (int i = 0; i < n; i++) { bool found = false; -- cgit mrf-deployment