From 3ff434cc0ac5b4fcba70d128d844a6e977f94ba4 Mon Sep 17 00:00:00 2001 From: Necip Fazil Yildiran Date: Mon, 29 Jun 2020 11:10:58 +0300 Subject: executor: enable cgroup/cpuset memory pressure calc. Enable the cpuset.memory_pressure_enabled flag in the root cpuset. --- executor/common_linux.h | 1 + 1 file changed, 1 insertion(+) (limited to 'executor') diff --git a/executor/common_linux.h b/executor/common_linux.h index a5da21c3f..c781e4b09 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -2406,6 +2406,7 @@ static void setup_cgroups() debug("mount(cgroup cpu) failed: %d\n", errno); } write_file("/syzcgroup/cpu/cgroup.clone_children", "1"); + write_file("/syzcgroup/cpu/cpuset.memory_pressure_enabled", "1"); if (chmod("/syzcgroup/cpu", 0777)) { debug("chmod(/syzcgroup/cpu) failed: %d\n", errno); } -- cgit mrf-deployment