]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/compaction: make proactive compaction high watermark configurable via sysctl
authorMichal Clapinski <mclapinski@google.com>
Mon, 27 Jan 2025 21:50:20 +0000 (22:50 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 28 Feb 2025 00:59:37 +0000 (16:59 -0800)
commitf679e7445f904f53f3111207011972e8accf4e0f
treef324690c5d24e343cb684509871f0815446617eb
parent6ebf3fa265f561e27f85826cb69b64ea00d8157d
mm/compaction: make proactive compaction high watermark configurable via sysctl

Currently, the difference between the high and low watermarks for
proactive compaction is hardcoded to 10.  This hardcoded difference is too
large for free page reporting to work well.

Add a new sysctl, `compaction_proactiveness_leeway`, to control the
difference between the high and low watermarks.

Link: https://lkml.kernel.org/r/20250127215020.4023545-3-mclapinski@google.com
Signed-off-by: Michal Clapinski <mclapinski@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/admin-guide/sysctl/vm.rst
mm/compaction.c