mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
libct/cg/sd/v2: support memory.* / Memory* unified
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -199,6 +199,7 @@ function setup() {
|
||||
"memory.low": "524288",
|
||||
"memory.high": "5242880",
|
||||
"memory.max": "10485760",
|
||||
"memory.swap.max": "20971520",
|
||||
"pids.max": "99",
|
||||
"cpu.max": "10000 100000",
|
||||
"cpu.weight": "42"
|
||||
@@ -215,9 +216,15 @@ function setup() {
|
||||
echo "$output" | grep -q '^memory.low:524288$'
|
||||
echo "$output" | grep -q '^memory.high:5242880$'
|
||||
echo "$output" | grep -q '^memory.max:10485760$'
|
||||
echo "$output" | grep -q '^memory.swap.max:20971520$'
|
||||
echo "$output" | grep -q '^pids.max:99$'
|
||||
echo "$output" | grep -q '^cpu.max:10000 100000$'
|
||||
|
||||
check_systemd_value "MemoryMin" 131072
|
||||
check_systemd_value "MemoryLow" 524288
|
||||
check_systemd_value "MemoryHigh" 5242880
|
||||
check_systemd_value "MemoryMax" 10485760
|
||||
check_systemd_value "MemorySwapMax" 20971520
|
||||
check_systemd_value "TasksMax" 99
|
||||
check_cpu_quota 10000 100000 "100ms"
|
||||
check_cpu_weight 42
|
||||
|
||||
Reference in New Issue
Block a user