Skip to content

Commit

Permalink
Merge pull request google#1423 from chenchun/memory_reservation
Browse files Browse the repository at this point in the history
GetSpec missing memory reservation
  • Loading branch information
tallclair authored Aug 17, 2016
2 parents 6213bfa + 844c98e commit 2ed7198
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions container/common/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ func GetSpec(cgroupPaths map[string]string, machineInfoFactory info.MachineInfoF
spec.HasMemory = true
spec.Memory.Limit = readUInt64(memoryRoot, "memory.limit_in_bytes")
spec.Memory.SwapLimit = readUInt64(memoryRoot, "memory.memsw.limit_in_bytes")
spec.Memory.Reservation = readUInt64(memoryRoot, "memory.soft_limit_in_bytes")
}
}

Expand Down

0 comments on commit 2ed7198

Please sign in to comment.