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 <aryabi...@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

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to