[rh7,1/2] mm/vmscan: make sysctl_vm_force_scan_thresh 100 by default

Submitted by Andrey Ryabinin on Nov. 23, 2017, 9:40 a.m.

Details

Message ID 20171123094033.9954-1-aryabinin@virtuozzo.com
State New
Series "Series without cover letter"
Headers show

Commit Message

Andrey Ryabinin Nov. 23, 2017, 9:40 a.m.
force_scan was invented for very narrow case. It hurts us badly
when we have one cgroup that consumes almost all memory and few
small ones.

Set sysctl_vm_force_scan_thresh to 100 by default which effectively
disables it.

https://jira.sw.ru/browse/PSBM-77547
Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
---
 mm/vmscan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/mm/vmscan.c b/mm/vmscan.c
index e13a71e4e44e..524d1452deb1 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1919,7 +1919,7 @@  static int vmscan_swappiness(struct scan_control *sc)
 }
 
 #ifdef CONFIG_MEMCG
-int sysctl_force_scan_thresh = 50;
+int sysctl_force_scan_thresh = 100;
 
 static inline bool zone_force_scan(struct zone *zone)
 {