From 8ed372cd672fc374b17f3d274f584c405d525547 Mon Sep 17 00:00:00 2001 From: UtsavBalar1231 Date: Sat, 13 Aug 2022 07:52:21 +0000 Subject: [PATCH] mm: page_alloc: Hardcode min_free_kbytes to 32768 kb Change-Id: I08355acd995e956c63cc0d3f1587604e39f91269 Signed-off-by: UtsavBalar1231 --- mm/page_alloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index d2d34f67d..726605dea 100755 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -319,7 +319,7 @@ compound_page_dtor * const compound_page_dtors[NR_COMPOUND_DTORS] = { * allocations below this point, only high priority ones. Automatically * tuned according to the amount of memory in the system. */ -int min_free_kbytes = 1024; +int min_free_kbytes = 32768; int user_min_free_kbytes = -1; #ifdef CONFIG_DISCONTIGMEM /* @@ -8318,8 +8318,8 @@ int __meminit init_per_zone_wmark_min(void) if (new_min_free_kbytes > user_min_free_kbytes) { min_free_kbytes = new_min_free_kbytes; - if (min_free_kbytes < 128) - min_free_kbytes = 128; + if (min_free_kbytes < 32768) + min_free_kbytes = 32768; if (min_free_kbytes > 262144) min_free_kbytes = 262144; } else {