Skip to content

Commit

Permalink
Merge pull request #3208 from pacoxu/patch-2
Browse files Browse the repository at this point in the history
use memory.min for reservation memory instead of high
  • Loading branch information
bobbypage committed Jan 5, 2023
2 parents 872058f + cbc0586 commit c7714a7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion container/common/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func getSpecInternal(cgroupPaths map[string]string, machineInfoFactory info.Mach
if cgroup2UnifiedMode {
if utils.FileExists(path.Join(memoryRoot, "memory.max")) {
spec.HasMemory = true
spec.Memory.Reservation = readUInt64(memoryRoot, "memory.high")
spec.Memory.Reservation = readUInt64(memoryRoot, "memory.min")
spec.Memory.Limit = readUInt64(memoryRoot, "memory.max")
spec.Memory.SwapLimit = readUInt64(memoryRoot, "memory.swap.max")
}
Expand Down

0 comments on commit c7714a7

Please sign in to comment.