These patches support triggering of proactive compaction by user on write to the /proc/sys/vm/compaction_proactiveness. Changes in V4: -- Changed the code as the 'proactive_defer' counter is removed. -- No changes in the logic of triggering the proactive compaction. -- Removed the 'proactive_defer' counter. Changes in V3: -- Fixed review comments from Vlastimil and others. -- Fixed wake up logic when compaction_proactiveness is zero. -- https://lore.kernel.org/patchwork/patch/1438211/ Changes in V2: -- remove /proc/../proactive_compact_memory interface trigger for proactive compaction -- Intention is same that add a way to trigger proactive compaction by user. -- https://lore.kernel.org/patchwork/patch/1431283/ Changes in V1: -- Created the new /proc/sys/vm/proactive_compact_memory in interface to trigger proactive compaction from user -- https://lore.kernel.org/lkml/1619098678-8501-1-git-send-email-charante@xxxxxxxxxxxxxx/ Charan Teja Reddy (3): mm: compaction: optimize proactive compaction deferrals mm: compaction: support triggering of proactive compaction by user mm: compaction: fix wakeup logic of proactive compaction Documentation/admin-guide/sysctl/vm.rst | 3 +- include/linux/compaction.h | 2 ++ include/linux/mmzone.h | 1 + kernel/sysctl.c | 2 +- mm/compaction.c | 61 +++++++++++++++++++++++++++------ 5 files changed, 56 insertions(+), 13 deletions(-) -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation