cgroup: Allow 5% of extra pages when RSS only limit
Moving pages to swap is a background task and can take a while. In the
mean-time the proces might alocate new pages breaking the limit
temporarily. Let's allow 5% overcommit in such case.
Note: this should never happen with mem+swap limit, because we know in
advance how much swap and mem we have left.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
Showing
想要评论请 注册 或 登录