mirror of
https://github.com/opencontainers/runc.git
synced 2025-09-26 19:41:35 +08:00
Merge pull request #4895 from rata/64k-alignment-v1.3
[1.3] tests/int/cgroups: Use 64K aligned limits for memory.max
This commit is contained in:
@@ -337,7 +337,7 @@ convert_hugetlb_size() {
|
||||
|
||||
set_cgroups_path
|
||||
update_config ' .linux.resources.unified |= {
|
||||
"memory.max": "20484096",
|
||||
"memory.max": "20512768",
|
||||
"memory.swap.max": "20971520"
|
||||
}'
|
||||
|
||||
@@ -348,10 +348,10 @@ convert_hugetlb_size() {
|
||||
[ "$status" -eq 0 ]
|
||||
echo "$output"
|
||||
|
||||
echo "$output" | grep -q '^memory.max:20484096$'
|
||||
echo "$output" | grep -q '^memory.max:20512768$'
|
||||
echo "$output" | grep -q '^memory.swap.max:20971520$'
|
||||
|
||||
check_systemd_value "MemoryMax" 20484096
|
||||
check_systemd_value "MemoryMax" 20512768
|
||||
check_systemd_value "MemorySwapMax" 20971520
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user