aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_linux.h
diff options
context:
space:
mode:
authorNecip Fazil Yildiran <necip@google.com>2020-06-29 11:10:58 +0300
committerDmitry Vyukov <dvyukov@google.com>2020-06-29 11:07:03 +0200
commit3ff434cc0ac5b4fcba70d128d844a6e977f94ba4 (patch)
tree6ae335b51e2048b87707ab0d302193b8acf3965f /executor/common_linux.h
parent0375051c1460f374bc036ac17e8fec15dece5e8e (diff)
executor: enable cgroup/cpuset memory pressure calc.
Enable the cpuset.memory_pressure_enabled flag in the root cpuset.
Diffstat (limited to 'executor/common_linux.h')
-rw-r--r--executor/common_linux.h1
1 files changed, 1 insertions, 0 deletions
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);
}