Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit 1128fdb

Browse files
authored
Merge pull request opencontainers#4894 from rata/64k-alignment-v1.4
[1.4] tests/int/cgroups: Use 64K aligned limits for memory.max
2 parents 81fe240 + b72f4a8 commit 1128fdb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integration/cgroups.bats

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ convert_hugetlb_size() {
362362

363363
set_cgroups_path
364364
update_config ' .linux.resources.unified |= {
365-
"memory.max": "20484096",
365+
"memory.max": "20512768",
366366
"memory.swap.max": "20971520"
367367
}'
368368

@@ -373,10 +373,10 @@ convert_hugetlb_size() {
373373
[ "$status" -eq 0 ]
374374
echo "$output"
375375

376-
echo "$output" | grep -q '^memory.max:20484096$'
376+
echo "$output" | grep -q '^memory.max:20512768$'
377377
echo "$output" | grep -q '^memory.swap.max:20971520$'
378378

379-
check_systemd_value "MemoryMax" 20484096
379+
check_systemd_value "MemoryMax" 20512768
380380
check_systemd_value "MemorySwapMax" 20971520
381381
}
382382

0 commit comments

Comments
 (0)