Skip to content

Commit

Permalink
Merge pull request #4020 from lifubang/fix-ci-cs9oom
Browse files Browse the repository at this point in the history
[CI] increase memory.max in cgroups.bats
  • Loading branch information
AkihiroSuda authored Sep 19, 2023
2 parents a3a0ec4 + 65a1074 commit 1614cab
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/integration/cgroups.bats
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function setup() {
"memory.min": "131072",
"memory.low": "524288",
"memory.high": "5242880",
"memory.max": "10485760",
"memory.max": "20484096",
"memory.swap.max": "20971520",
"pids.max": "99",
"cpu.max": "10000 100000",
Expand All @@ -224,15 +224,15 @@ function setup() {
echo "$output" | grep -q '^memory.min:131072$'
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.max:20484096$'
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 "MemoryMax" 20484096
check_systemd_value "MemorySwapMax" 20971520
check_systemd_value "TasksMax" 99
check_cpu_quota 10000 100000 "100ms"
Expand All @@ -252,7 +252,7 @@ function setup() {
}
| .linux.resources.unified |= {
"memory.min": "131072",
"memory.max": "10485760",
"memory.max": "40484864",
"pids.max": "42",
"cpu.max": "5000 50000",
"cpu.weight": "42"
Expand All @@ -267,7 +267,7 @@ function setup() {

runc exec test_cgroups_unified cat /sys/fs/cgroup/memory.max
[ "$status" -eq 0 ]
[ "$output" = '10485760' ]
[ "$output" = '40484864' ]

runc exec test_cgroups_unified cat /sys/fs/cgroup/pids.max
[ "$status" -eq 0 ]
Expand Down

0 comments on commit 1614cab

Please sign in to comment.