On Mon, 26.08.13 11:19, Gao feng ([email protected]) wrote:

> Hi
> 
> The SYSTEMD.CGROUP(5) said if MemoryLimit=bytes is set for unit, it
> implies MemeoryAccounting=true for this unit.
> 
> But seems systemd didn't implement this hint. CPUShares & BlockIO have
> the same problem, this is a shortage? patch needed?


The logic for this is in src/core/cgroup.c's cgroup_context_get_mask()
call, which will determine to which cgroup controllers to add a unit
to. Note that setting MemoryLimit= will not actually propagate to the
boolean exposed in MemoryAccounting=, it will just have the same effect
as if it was set...

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to