From 44783e7f43b1190ccf6656f7de9456aec0dd6c2c Mon Sep 17 00:00:00 2001 From: Charan Teja Reddy Date: Fri, 9 Aug 2019 19:26:04 +0530 Subject: [PATCH] mm: oom: enable the sysctl_reap_mem_on_sigkill by default Enable the reaping of memory on a sigkill by default. This helps in faster releasing of memory pages to buddy. Change-Id: I90a508e6d16099527991674f6b4efdc55f415c59 Signed-off-by: Charan Teja Reddy Signed-off-by: Chris Goldsworthy --- mm/oom_kill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 1b076aa6a1e6..3b522b9b2aca 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -56,7 +56,7 @@ int sysctl_panic_on_oom = IS_ENABLED(CONFIG_DEBUG_PANIC_ON_OOM) ? 2 : 0; int sysctl_oom_kill_allocating_task; int sysctl_oom_dump_tasks = 1; -int sysctl_reap_mem_on_sigkill; +int sysctl_reap_mem_on_sigkill = 1; /* * Serializes oom killer invocations (out_of_memory()) from all contexts to