Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1433862

Re: [PATCH 1/2] cgroup: pids: show number of failed forks since limit reset

From Tejun Heo <tj@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 1/2] cgroup: pids: show number of failed forks since limit reset
Date 2016-06-29 17:40 +0200
Message-ID <rPpKO-5V4-39@gated-at.bofh.it> (permalink)
References (1 earlier) <rNpvA-2g4-13@gated-at.bofh.it> <rNBn4-1op-31@gated-at.bofh.it> <rOgzU-2mY-11@gated-at.bofh.it> <rOrYl-We-3@gated-at.bofh.it> <rPfV7-8oI-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hello, Aleksa.

On Wed, Jun 29, 2016 at 03:10:26PM +1000, Aleksa Sarai wrote:
> Maybe I'm misunderstanding what the purpose of pids.events is meant to be.
> If it's just meant to be a "hint" to the administrator, then that seems like
> an awfully odd way of giving hints (the kernel logging should be enough for
> that). If it's meant so that the administrator can make policy decisions,

Kernel logging may be an enough hint for a human admin but is an awful
mechanism for any programs trying to monitor.

> then she won't know if the change in failures happened before or after she
> adjusted the limit.
> 
> I also don't see what you mean by "it can be avoided from userland". There's
> a race between changing pids.max and a process forking that causes
> pids.events to be updated.

First of all, a situation where a cgroup hits its limits and then can
proceed normally after the limit is lifted would be very rare.
Secondly, even in those corner cases, synchronization between config
update and event counter doesn't matter.  For dynamic adjustments to
work, fork failures have to be cleanly recoverable and thus the user
can just start monitoring after the config is bumped up - if it fails
again, adjust again; otherwise, it's all good.  It just doesn't
matter.

Thanks.

-- 
tejun

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] cgroup: pids: show number of failed forks since limit reset Aleksa Sarai <asarai@suse.de> - 2016-06-24 05:00 +0200
  Re: [PATCH 1/2] cgroup: pids: show number of failed forks since  limit reset Tejun Heo <tj@kernel.org> - 2016-06-24 17:40 +0200
    Re: [PATCH 1/2] cgroup: pids: show number of failed forks since limit  reset Aleksa Sarai <asarai@suse.de> - 2016-06-26 13:40 +0200
      Re: [PATCH 1/2] cgroup: pids: show number of failed forks since  limit reset Tejun Heo <tj@kernel.org> - 2016-06-27 01:50 +0200
        Re: [PATCH 1/2] cgroup: pids: show number of failed forks since limit  reset Aleksa Sarai <asarai@suse.de> - 2016-06-29 07:10 +0200
          Re: [PATCH 1/2] cgroup: pids: show number of failed forks since  limit reset Tejun Heo <tj@kernel.org> - 2016-06-29 17:40 +0200

csiph-web