PoolType=z3fold
[MemoryDedup]
-#DedupAtBoot=yes
-#ScanOnLowmem=yes
+DedupAtBoot=yes
+ScanOnLowmem=yes
[MemoryKsm]
-#KsmMode=oneshot
-#KsmMode=periodic
+KsmMode=oneshot
+KsmMode=periodic
-#PagesToScan=100
-#PagesToScanWithBoost=1000
+PagesToScan=100
+PagesToScanWithBoost=1000
[MemoryCompaction]
-#FragLevel=800
+FragLevel=800
[CpuSched]
#CpuSchedFeature=no_rt_runtime_share
memcg_set_threshold(MEMCG_ROOT, lvl,
calculate_threshold_size(memcg_conf->threshold[lvl].threshold));
- if (lvl == MEM_LEVEL_OOM)
+ if (lvl == MEM_LEVEL_OOM) {
memcg_set_leave_threshold(MEMCG_ROOT,
- get_memcg_info(MEMCG_ROOT)->threshold_mb[lvl] * 2);
+ get_memcg_info(MEMCG_ROOT)->threshold_mb[lvl] * 1.5);
+ proactive_threshold_mb = get_memcg_info(MEMCG_ROOT)->threshold_leave_mb;
+ proactive_leave_mb = proactive_threshold_mb * 1.5;
+ }
}
else if (memcg_conf->threshold[lvl].threshold > 0) {
memcg_set_threshold(MEMCG_ROOT, lvl,
memcg_conf->threshold[lvl].threshold);
- if (lvl == MEM_LEVEL_OOM)
+ if (lvl == MEM_LEVEL_OOM) {
memcg_set_leave_threshold(MEMCG_ROOT,
- get_memcg_info(MEMCG_ROOT)->threshold_mb[lvl] * 2);
+ get_memcg_info(MEMCG_ROOT)->threshold_mb[lvl] * 1.5);
+ proactive_threshold_mb = get_memcg_info(MEMCG_ROOT)->threshold_leave_mb;
+ proactive_leave_mb = proactive_threshold_mb * 1.5;
+ }
+
}
}
oom_popup_enable = memcg_conf->oom_popup;