summaryrefslogtreecommitdiffstats
path: root/patches/boot_time_opt_guest/0104-mm-reduce-vmstat-wakeups.patch
blob: d9c42b68e31af0dd9e9de3941216242619543e3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From e09e490bbc40c9e10047af76577efb099eb915d1 Mon Sep 17 00:00:00 2001
From: Arjan van de Ven <arjan@linux.intel.com>
Date: Mon, 1 May 2017 01:00:51 +0000
Subject: [PATCH 104/114] mm: reduce vmstat wakeups

---
 mm/vmstat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/vmstat.c b/mm/vmstat.c
index 76f73670200a..3cc9788e0be2 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -1562,7 +1562,7 @@ static const struct file_operations proc_vmstat_file_operations = {
 
 #ifdef CONFIG_SMP
 static DEFINE_PER_CPU(struct delayed_work, vmstat_work);
-int sysctl_stat_interval __read_mostly = HZ;
+int sysctl_stat_interval __read_mostly = 8 * HZ;
 
 #ifdef CONFIG_PROC_FS
 static void refresh_vm_stats(struct work_struct *work)
-- 
2.13.2