From c4bd5f6e084a6ced2c7a2f76798d0a34947ffeb7 Mon Sep 17 00:00:00 2001 From: Martin Borg Date: Fri, 23 Mar 2018 14:01:03 +0100 Subject: boot_time_opt: update host boot time optimization patches for 4.14 The new patches are based on: https://github.com/clearlinux-pkgs/linux-lts commit 5595fe425a52af6734235a1a953b6b03210060ec Signed-off-by: Martin Borg Signed-off-by: Adrian Dudau --- ...54-sysctl-vm-Fine-grained-cache-shrinking.patch | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'patches/boot_time_opt/0154-sysctl-vm-Fine-grained-cache-shrinking.patch') diff --git a/patches/boot_time_opt/0154-sysctl-vm-Fine-grained-cache-shrinking.patch b/patches/boot_time_opt/0154-sysctl-vm-Fine-grained-cache-shrinking.patch index 07d4a83..64021c6 100644 --- a/patches/boot_time_opt/0154-sysctl-vm-Fine-grained-cache-shrinking.patch +++ b/patches/boot_time_opt/0154-sysctl-vm-Fine-grained-cache-shrinking.patch @@ -1,4 +1,4 @@ -From 2c145b5233b504f5226a0f4bc44baeef33b444d8 Mon Sep 17 00:00:00 2001 +From 130d5d976b920aec243e0fa63273f3143660054b Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Mon, 23 Jan 2017 15:32:39 -0800 Subject: [PATCH 154/154] sysctl: vm: Fine-grained cache shrinking @@ -35,10 +35,10 @@ Signed-off-by: Sebastien Boeuf 4 files changed, 37 insertions(+), 2 deletions(-) diff --git a/fs/drop_caches.c b/fs/drop_caches.c -index d72d52b90433..f564dfcc13a4 100644 +index 82377017130f..f8de1383498b 100644 --- a/fs/drop_caches.c +++ b/fs/drop_caches.c -@@ -8,10 +8,12 @@ +@@ -9,10 +9,12 @@ #include #include #include @@ -51,7 +51,7 @@ index d72d52b90433..f564dfcc13a4 100644 static void drop_pagecache_sb(struct super_block *sb, void *unused) { -@@ -67,3 +69,26 @@ int drop_caches_sysctl_handler(struct ctl_table *table, int write, +@@ -68,3 +70,26 @@ int drop_caches_sysctl_handler(struct ctl_table *table, int write, } return 0; } @@ -79,10 +79,10 @@ index d72d52b90433..f564dfcc13a4 100644 + return 0; +} diff --git a/include/linux/mm.h b/include/linux/mm.h -index 833f23d98baa..0bb66c1c31c9 100644 +index 15e02bf3a6b3..9f9b967ad2c9 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h -@@ -2308,6 +2308,10 @@ extern int kvm_ret_mem_advice; +@@ -2457,6 +2457,10 @@ extern int kvm_ret_mem_advice; int kvm_madv_instant_free_sysctl_handler(struct ctl_table *table, int write, void __user *buffer, size_t *length, loff_t *ppos); @@ -94,10 +94,10 @@ index 833f23d98baa..0bb66c1c31c9 100644 void drop_slab(void); diff --git a/kernel/sysctl.c b/kernel/sysctl.c -index d8ae774fa042..5dc9a46ae212 100644 +index 9a1611f92a2a..9b74b4f0251d 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c -@@ -1405,6 +1405,14 @@ static struct ctl_table vm_table[] = { +@@ -1417,6 +1417,14 @@ static struct ctl_table vm_table[] = { .mode = 0644, .proc_handler = kvm_madv_instant_free_sysctl_handler, }, @@ -113,10 +113,10 @@ index d8ae774fa042..5dc9a46ae212 100644 { .procname = "compact_memory", diff --git a/mm/vmscan.c b/mm/vmscan.c -index 30a88b945a44..1198e74d1860 100644 +index eb2f0315b8c0..b16f327b0211 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c -@@ -3525,7 +3525,6 @@ void wakeup_kswapd(struct zone *zone, int order, enum zone_type classzone_idx) +@@ -3646,7 +3646,6 @@ void wakeup_kswapd(struct zone *zone, int order, enum zone_type classzone_idx) wake_up_interruptible(&pgdat->kswapd_wait); } @@ -124,7 +124,7 @@ index 30a88b945a44..1198e74d1860 100644 /* * Try to free `nr_to_reclaim' of memory, system-wide, and return the number of * freed pages. -@@ -3564,7 +3563,6 @@ unsigned long shrink_all_memory(unsigned long nr_to_reclaim) +@@ -3686,7 +3685,6 @@ unsigned long shrink_all_memory(unsigned long nr_to_reclaim) return nr_reclaimed; } @@ -133,5 +133,5 @@ index 30a88b945a44..1198e74d1860 100644 /* It's optimal to keep kswapds on the same CPUs as their memory, but not required for correctness. So if the last cpu in a node goes -- -2.12.1 +2.15.0 -- cgit v1.2.3-54-g00ecf