Skip to content

Commit cbc0586

Browse files
committed
use memory.min for reservation memory instead of high
high is throttling bar
1 parent 872058f commit cbc0586

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)