Skip to content

Commit c7714a7

Browse files
authored
Merge pull request #3208 from pacoxu/patch-2
use memory.min for reservation memory instead of high
2 parents 872058f + cbc0586 commit c7714a7

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

container/common/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func getSpecInternal(cgroupPaths map[string]string, machineInfoFactory info.Mach
172172
if cgroup2UnifiedMode {
173173
if utils.FileExists(path.Join(memoryRoot, "memory.max")) {
174174
spec.HasMemory = true
175-
spec.Memory.Reservation = readUInt64(memoryRoot, "memory.high")
175+
spec.Memory.Reservation = readUInt64(memoryRoot, "memory.min")
176176
spec.Memory.Limit = readUInt64(memoryRoot, "memory.max")
177177
spec.Memory.SwapLimit = readUInt64(memoryRoot, "memory.swap.max")
178178
}

0 commit comments

Comments
 (0)