From: Roman Gushchin <guro@fb.com>
To: Claudio <claudiozumbo@gmail.com>
Cc: <linux-kselftest@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<cgroups@vger.kernel.org>, Claudio Zumbo <claudioz@fb.com>,
Shuah Khan <shuah@kernel.org>, Tejun Heo <tj@kernel.org>,
<kernel-team@fb.com>
Subject: Re: [PATCH kselftest-next] Add cgroup core selftests
Date: Thu, 19 Jul 2018 10:08:30 -0700 [thread overview]
Message-ID: <20180719170829.GB21770@castle.DHCP.thefacebook.com> (raw)
In-Reply-To: <20180718173358.14007-1-claudiozumbo@gmail.com>
On Wed, Jul 18, 2018 at 07:33:58PM +0200, Claudio wrote:
> This commit adds tests for some of the core functionalities
> of cgroups v2.
>
> The commit adds tests for some core principles of croup V2 API:
>
> - test_cgcore_internal_process_constraint
>
> Tests internal process constraint.
> You can't add a pid to a domain parent if a controller is enabled.
>
> - test_cgcore_top_down_constraint_enable
>
> Tests that you can't enable a controller on a child if it's not enabled
> on the parent.
>
> - test_cgcore_top_down_constraint_disable
>
> Tests that you can't disable a controller on a parent if it's
> enabled in a child.
>
> - test_cgcore_no_internal_process_constraint_on_threads
>
> Tests that there's no internal process constrain on threaded cgroups.
> You can add threads/processes on a parent with a controller enabled.
>
> - test_cgcore_parent_becomes_threaded
>
> Tests that when a child becomes threaded the parent type becomes
> domain threaded.
>
> - test_cgcore_invalid_domain
>
> In a situation like:
>
> A (domain threaded) - B (threaded) - C (domain)
>
> it tests that C can't be used until it is turned into a threaded cgroup.
> The "cgroup.type" file will report "domain (invalid)" in these cases.
> Operations which fail due to invalid topology use EOPNOTSUPP as the errno.
>
> - test_cgcore_populated
>
> In a situation like:
>
> A(0) - B(0) - C(1)
> \ D(0)
>
> It tests that A, B and C's "populated" fields would be 1 while D's 0.
> It tests that after the one process in C is moved to root, A,B and C's
> "populated" fields would flip to "0" and file modified events will
> be generated on the "cgroup.events" files of both cgroups.
>
> Signed-off-by: Claudio Zumbo <claudioz@fb.com>
> Cc: Shuah Khan <shuah@kernel.org>
> Cc: Roman Gushchin <guro@fb.com>
> Cc: Tejun Heo <tj@kernel.org>
> Cc: kernel-team@fb.com
Looks good to me!
Reviewed-by: Roman Gushchin <guro@fb.com>
Thank you!
next prev parent reply other threads:[~2018-07-19 17:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-18 17:33 Claudio
2018-07-19 16:57 ` Tejun Heo
2018-07-19 17:08 ` Roman Gushchin [this message]
2018-07-24 16:47 ` Shuah Khan
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=20180719170829.GB21770@castle.DHCP.thefacebook.com \
--to=guro@fb.com \
--cc=cgroups@vger.kernel.org \
--cc=claudioz@fb.com \
--cc=claudiozumbo@gmail.com \
--cc=kernel-team@fb.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=shuah@kernel.org \
--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®