From: "Michal Koutný" <mkoutny@suse.com>
To: cgroups@vger.kernel.org
Cc: Tejun Heo <tj@kernel.org>, Li Zefan <lizefan@huawei.com>,
Johannes Weiner <hannes@cmpxchg.org>,
Aleksa Sarai <cyphar@cyphar.com>,
linux-kernel@vger.kernel.org
Subject: [RFC PATCH v2 0/3] cgroup/pids: Make pids.events notifications affine to pids.max
Date: Wed, 5 Feb 2020 14:44:23 +0100 [thread overview]
Message-ID: <20200205134426.10570-1-mkoutny@suse.com> (raw)
In-Reply-To: <20191128172612.10259-1-mkoutny@suse.com>
Currently, when pids.max limit is breached in the hierarchy, the event
is counted and reported in the cgroup where the forking task resides. This
isn't hierarchical neither binds event to its limit
Reasons for RFC:
1) Introduction of new event type.
2) Missing one step further would be to distinguish pids.events and
pids.events.local.
Changes from v1: https://lkml.kernel.org/r/20191128172612.10259-1-mkoutny@suse.com
- introduce two separate types of events
- make event counting hierarchical
Michal Koutný (3):
cgroup/pids: Separate semantics of pids.events related to pids.max
cgroup/pids: Make event counters hierarchical
selftests: cgroup: Add basic tests for pids controller
Documentation/admin-guide/cgroup-v1/pids.rst | 3 +-
Documentation/admin-guide/cgroup-v2.rst | 14 ++
kernel/cgroup/pids.c | 92 +++++++--
tools/testing/selftests/cgroup/Makefile | 8 +-
tools/testing/selftests/cgroup/test_pids.c | 188 +++++++++++++++++++
5 files changed, 288 insertions(+), 17 deletions(-)
create mode 100644 tools/testing/selftests/cgroup/test_pids.c
--
2.24.1
next prev parent reply other threads:[~2020-02-05 13:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-28 17:26 [RFC PATCH] " Michal Koutný
2019-12-02 19:11 ` Tejun Heo
2020-02-05 13:44 ` Michal Koutný [this message]
2020-02-05 13:44 ` [RFC PATCH v2 1/3] cgroup/pids: Separate semantics of pids.events related " Michal Koutný
2020-02-12 23:03 ` Tejun Heo
2020-02-05 13:44 ` [RFC PATCH v2 2/3] cgroup/pids: Make event counters hierarchical Michal Koutný
2020-02-05 13:44 ` [RFC PATCH v2 3/3] selftests: cgroup: Add basic tests for pids controller Michal Koutný
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200205134426.10570-1-mkoutny@suse.com \
--to=mkoutny@suse.com \
--cc=cgroups@vger.kernel.org \
--cc=cyphar@cyphar.com \
--cc=hannes@cmpxchg.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lizefan@huawei.com \
--cc=tj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®