From 57aef9d9a2a3f567568a77c4b3209d86f9340013 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 1 Dec 2020 13:53:42 +0100 Subject: executor: tune few more sysctl's Faster gc (1 second) is intended to make tests more repeatable. {"/proc/sys/kernel/keys/gc_delay", "1"}, Huge page overcommit is disabled by default, allowing some overcommit is intended to give more coverage. {"/proc/sys/vm/nr_overcommit_hugepages", "4"}, We always want to prefer killing the allocating test process rather than somebody else (sshd or another random test process). {"/proc/sys/vm/oom_kill_allocating_task", "1"}, --- executor/common_linux.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'executor/common_linux.h') diff --git a/executor/common_linux.h b/executor/common_linux.h index 98489f12d..a7e45bd26 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -4618,6 +4618,13 @@ static void setup_sysctl() {"/proc/sys/debug/exception-trace", "0"}, {"/proc/sys/kernel/printk", "7 4 1 3"}, {"/proc/sys/net/ipv4/ping_group_range", "0 65535"}, + // Faster gc (1 second) is intended to make tests more repeatable. + {"/proc/sys/kernel/keys/gc_delay", "1"}, + // Huge page overcommit is disabled by default, allowing some overcommit is intended to give more coverage. + {"/proc/sys/vm/nr_overcommit_hugepages", "4"}, + // We always want to prefer killing the allocating test process rather than somebody else + // (sshd or another random test process). + {"/proc/sys/vm/oom_kill_allocating_task", "1"}, }; for (size_t i = 0; i < sizeof(files) / sizeof(files[0]); i++) { if (!write_file(files[i].name, files[i].data)) -- cgit mrf-deployment