[Devel] [PATCH rh7 1/2] mm/vmscan: make sysctl_vm_force_scan_thresh 100 by default
Andrey Ryabinin
aryabinin at virtuozzo.com
Thu Nov 23 12:40:32 MSK 2017
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 at virtuozzo.com>
---
mm/vmscan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
{
--
2.13.6
More information about the Devel
mailing list