diff options
Diffstat (limited to '0028-ZEN-INTERACTIVE-mm-Disable-proactive-compaction-by-d.patch')
-rw-r--r-- | 0028-ZEN-INTERACTIVE-mm-Disable-proactive-compaction-by-d.patch | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/0028-ZEN-INTERACTIVE-mm-Disable-proactive-compaction-by-d.patch b/0028-ZEN-INTERACTIVE-mm-Disable-proactive-compaction-by-d.patch deleted file mode 100644 index 4bcd0d2080e5..000000000000 --- a/0028-ZEN-INTERACTIVE-mm-Disable-proactive-compaction-by-d.patch +++ /dev/null @@ -1,42 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Sultan Alsawaf <sultan@kerneltoast.com> -Date: Sat, 24 Oct 2020 22:17:49 -0700 -Subject: [PATCH] ZEN: INTERACTIVE: mm: Disable proactive compaction by default - -On-demand compaction works fine assuming that you don't have a need to -spam the page allocator nonstop for large order page allocations. - -Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com> ---- - init/Kconfig | 1 + - mm/compaction.c | 4 ++++ - 2 files changed, 5 insertions(+) - -diff --git a/init/Kconfig b/init/Kconfig -index 205048962a678d7fea33263ac40cc6b1b3c3dd8e..a949de64fd4a73543722c96aaa9c7e534bb4c26a 100644 ---- a/init/Kconfig -+++ b/init/Kconfig -@@ -132,6 +132,7 @@ config ZEN_INTERACTIVE - Background-reclaim hugepages...: no -> yes - MG-LRU minimum cache TTL.......: 0 -> 1000 ms - Compact Unevictable............: 1 -> 0 -+ Proactive Compaction...........: 20 -> 0 - - --- CFS CPU Scheduler ---------------------------------- - -diff --git a/mm/compaction.c b/mm/compaction.c -index 04b62fb353b4f05268f8de3c4fcbcccc1edfde46..e813973ee0f183285636f31eda327594dbafeb80 100644 ---- a/mm/compaction.c -+++ b/mm/compaction.c -@@ -2718,7 +2718,11 @@ static void compact_nodes(void) - * aggressively the kernel should compact memory in the - * background. It takes values in the range [0, 100]. - */ -+#ifdef CONFIG_ZEN_INTERACTIVE -+unsigned int __read_mostly sysctl_compaction_proactiveness; -+#else - unsigned int __read_mostly sysctl_compaction_proactiveness = 20; -+#endif - - int compaction_proactiveness_sysctl_handler(struct ctl_table *table, int write, - void *buffer, size_t *length, loff_t *ppos) |