Skip to content

Commit c013be5

Browse files
committed
libct/cg/sd/v2: support memory.* / Memory* unified
Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 13afa58 commit c013be5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/integration/cgroups.bats

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)