mirror of
https://github.com/containers/podman.git
synced 2025-05-21 09:05:56 +08:00
podman pod create --memory
using the new resource backend, implement podman pod create --memory which enables users to modify memory.max inside of the parent cgroup (the pod), implicitly impacting all children unless overriden Signed-off-by: Charlie Doern <cdoern@redhat.com>
This commit is contained in:
4
vendor/github.com/containers/common/pkg/cgroups/systemd_linux.go
generated
vendored
4
vendor/github.com/containers/common/pkg/cgroups/systemd_linux.go
generated
vendored
@ -152,10 +152,10 @@ func resourcesToProps(res *configs.Resources) (map[string]uint64, map[string]str
|
||||
|
||||
// Mem
|
||||
if res.Memory != 0 {
|
||||
iMap["MemoryMax"] = res.Memory
|
||||
uMap["MemoryMax"] = uint64(res.Memory)
|
||||
}
|
||||
if res.MemorySwap != 0 {
|
||||
iMap["MemorySwapMax"] = res.MemorySwap
|
||||
uMap["MemorySwapMax"] = uint64(res.MemorySwap)
|
||||
}
|
||||
|
||||
// Blkio
|
||||
|
Reference in New Issue
Block a user