You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This check is useless as:
"We have to limit the kernel memory here as it won't be accounted at all
until a limit is set on the cgroup" - if kmem accounting is enabled on
boot (no nokmem) kernel memory would be accounted without setting the
limit.
"limit cannot be set once the cgroup has children, or if there are
already tasks in the cgroup." - It can, the only restriction it should
be > usage, but setting this limit < future usage is a bad thing itself.
So there is no difference if we set this limit on an active cgroup.
More over memory.kmem.limit_in_bytes is deprecated in mainstream linux
kernel as it was considered unreliable, see more information in:
commit 0158115f702b ("memcg, kmem: deprecate kmem.limit_in_bytes")
Link: torvalds/linux@0158115f702b
Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
0 commit comments