Merge pull request #5629 from vmarmol/fix-systemd-softlimit
Remove support for MemoryReservation in systemd systems.
This commit is contained in:
commit
44102c82aa
1 changed files with 1 additions and 5 deletions
|
@ -146,11 +146,7 @@ func Apply(c *cgroups.Cgroup, pid int) (cgroups.ActiveCgroup, error) {
|
||||||
properties = append(properties,
|
properties = append(properties,
|
||||||
systemd1.Property{"MemoryLimit", dbus.MakeVariant(uint64(c.Memory))})
|
systemd1.Property{"MemoryLimit", dbus.MakeVariant(uint64(c.Memory))})
|
||||||
}
|
}
|
||||||
if c.MemoryReservation != 0 {
|
// TODO: MemoryReservation and MemorySwap not available in systemd
|
||||||
properties = append(properties,
|
|
||||||
systemd1.Property{"MemorySoftLimit", dbus.MakeVariant(uint64(c.MemoryReservation))})
|
|
||||||
}
|
|
||||||
// TODO: MemorySwap not available in systemd
|
|
||||||
|
|
||||||
if c.CpuShares != 0 {
|
if c.CpuShares != 0 {
|
||||||
properties = append(properties,
|
properties = append(properties,
|
||||||
|
|
Loading…
Reference in a new issue