]> 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>
Tue, 4 Mar 2025 05:49:28 +0000 (21:49 -0800)
commitdabd0231461a15fdec9d6e10385b8e9c27ccfade
tree7508822788baeb308bf94f5683df87f8fac3cd9f
parentbf76dc4e7ce8cec3f02ad61f490a12fe0cda2193
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