File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ function setup() {
199199 "memory.low": "524288",
200200 "memory.high": "5242880",
201201 "memory.max": "10485760",
202+ "memory.swap.max": "20971520",
202203 "pids.max": "99",
203204 "cpu.max": "10000 100000",
204205 "cpu.weight": "42"
@@ -215,9 +216,15 @@ function setup() {
215216 echo " $output " | grep -q ' ^memory.low:524288$'
216217 echo " $output " | grep -q ' ^memory.high:5242880$'
217218 echo " $output " | grep -q ' ^memory.max:10485760$'
219+ echo " $output " | grep -q ' ^memory.swap.max:20971520$'
218220 echo " $output " | grep -q ' ^pids.max:99$'
219221 echo " $output " | grep -q ' ^cpu.max:10000 100000$'
220222
223+ check_systemd_value " MemoryMin" 131072
224+ check_systemd_value " MemoryLow" 524288
225+ check_systemd_value " MemoryHigh" 5242880
226+ check_systemd_value " MemoryMax" 10485760
227+ check_systemd_value " MemorySwapMax" 20971520
221228 check_systemd_value " TasksMax" 99
222229 check_cpu_quota 10000 100000 " 100ms"
223230 check_cpu_weight 42
You can’t perform that action at this time.
0 commit comments