From: Richard Palethorpe <rpalethorpe@suse.de>
To: Luke Nowakowski-Krijger <luke.nowakowskikrijger@canonical.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v4 00/19] Expand Cgroup lib and modify controller tests
Date: Mon, 02 May 2022 10:19:28 +0100 [thread overview]
Message-ID: <87ee1ce17u.fsf@suse.de> (raw)
In-Reply-To: <cover.1651176645.git.luke.nowakowskikrijger@canonical.com>
Hello Luke,
I'm happy with this. Although perhaps there will be some issues with the
tests because there are quite a lot of changes. Would be nice to get it
into the next release.
For the whole patch series:
Reviewed-by: Richard Palethorpe <rpalethorpe@suse.com>
Luke Nowakowski-Krijger <luke.nowakowskikrijger@canonical.com> writes:
> This patchset aims to expand the cgroup_lib shell library to simplify
> and centralize the whole mounting and cleanup process that can get
> rather confusing and redundant when writing cgroup controller tests from
> a shell environment. This is done by having the shell library make calls
> to the C cgroup API from a binary utility.
>
> In this patch set there are a few tests that have been extensively
> rewritten to work with the new test API and to use the new functionality
> from the cgroup lib. Because the test Cgroup lib handles mounting for v1
> and v2 controllers, some tests were modified to also work under cgroup
> v2. Some tests that were written for v1 controller also effictively test
> v2 controllers, while others were written to test v2 controllers in the
> spirit of the test or skipped outright.
>
> Luke Nowakowski-Krijger (19):
> API/cgroup: Modify tst_cg_print_config for parsing and consumption
> API/cgroup: Add option for specific pid to tst_cg_opts
> API/cgroup: Add cgroup_find_root helper function
> API/cgroup: Add CTRL_NAME_MAX define
> tst_test_macros: Add TST_TOSTR macro
> API/cgroup: Implement tst_cg_load_config
> API/cgroup: Add more controllers to tst_cgroup
> API/cgroup: refuse to mount blkio when io controller is mounted
> testcases/lib: Implement tst_cgctl binary
> testcases/lib: Add tst_flag2mask function
> controllers: Expand cgroup_lib shell library
> controllers: Update cgroup_fj_* to use newer cgroup lib and test lib
> controllers: Update memcg_control_test to newer test lib and cgroup
> lib
> controllers: Update memcg/regression/* to new test and cgroup lib
> controllers: Update memcg_stress_test to use newer cgroup lib
> controllers: update memcg/functional to use newer cgroup lib
> controllers: Update pids.sh to use newer cgroup lib
> controllers: update cpuset_regression_test.sh to use newer cgroup lib
> controllers: update cgroup_regression_test to use newer cgroup lib
>
> include/tst_cgroup.h | 17 +-
> include/tst_test_macros.h | 3 +
> lib/tst_cgroup.c | 215 +++++++++++++++++-
> .../cgroup/cgroup_regression_test.sh | 31 +--
> .../controllers/cgroup_fj/cgroup_fj_common.sh | 113 +++------
> .../cgroup_fj/cgroup_fj_function.sh | 169 ++++++++------
> .../controllers/cgroup_fj/cgroup_fj_proc.c | 24 +-
> .../controllers/cgroup_fj/cgroup_fj_stress.sh | 168 +++++++-------
> testcases/kernel/controllers/cgroup_lib.sh | 141 ++++++++++--
> .../cpuset/cpuset_regression_test.sh | 26 +--
> .../controllers/memcg/control/mem_process.c | 28 +--
> .../memcg/control/memcg_control_test.sh | 150 +++---------
> .../memcg/functional/memcg_force_empty.sh | 2 +-
> .../controllers/memcg/functional/memcg_lib.sh | 54 +++--
> .../memcg/regression/memcg_regression_test.sh | 202 ++++++++--------
> .../memcg/regression/memcg_test_1.c | 40 ++--
> .../memcg/regression/memcg_test_2.c | 24 +-
> .../memcg/regression/memcg_test_3.c | 38 ++--
> .../memcg/regression/memcg_test_4.c | 24 +-
> .../memcg/regression/memcg_test_4.sh | 50 ++--
> .../memcg/stress/memcg_stress_test.sh | 32 +--
> testcases/kernel/controllers/pids/pids.sh | 67 +-----
> testcases/lib/Makefile | 2 +-
> testcases/lib/tst_cgctl.c | 87 +++++++
> testcases/lib/tst_test.sh | 13 ++
> 25 files changed, 927 insertions(+), 793 deletions(-)
> create mode 100644 testcases/lib/tst_cgctl.c
--
Thank you,
Richard.
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2022-05-02 9:24 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-28 20:39 [LTP] [PATCH v4 00/19] Expand Cgroup lib and modify controller tests Luke Nowakowski-Krijger
2022-04-28 20:39 ` [LTP] [PATCH v3 01/19] API/cgroup: Modify tst_cg_print_config for parsing and consumption Luke Nowakowski-Krijger
2022-04-28 20:39 ` [LTP] [PATCH 02/19] API/cgroup: Add option for specific pid to tst_cg_opts Luke Nowakowski-Krijger
2022-04-28 20:39 ` [LTP] [PATCH v2 03/19] API/cgroup: Add cgroup_find_root helper function Luke Nowakowski-Krijger
2022-04-28 20:39 ` [LTP] [PATCH 04/19] API/cgroup: Add CTRL_NAME_MAX define Luke Nowakowski-Krijger
2022-05-03 14:26 ` Petr Vorel
2022-04-28 20:39 ` [LTP] [PATCH 05/19] tst_test_macros: Add TST_TOSTR macro Luke Nowakowski-Krijger
2022-05-03 14:38 ` Petr Vorel
2022-05-05 13:34 ` Cyril Hrubis
2022-04-28 20:39 ` [LTP] [PATCH v4 06/19] API/cgroup: Implement tst_cg_load_config Luke Nowakowski-Krijger
2022-04-28 20:39 ` [LTP] [PATCH v3 07/19] API/cgroup: Add more controllers to tst_cgroup Luke Nowakowski-Krijger
2022-04-28 20:39 ` [LTP] [PATCH 08/19] API/cgroup: refuse to mount blkio when io controller is mounted Luke Nowakowski-Krijger
2022-05-03 15:10 ` Petr Vorel
2022-04-28 20:39 ` [LTP] [PATCH v2 09/19] testcases/lib: Implement tst_cgctl binary Luke Nowakowski-Krijger
2022-04-28 20:39 ` [LTP] [PATCH 10/19] testcases/lib: Add tst_flag2mask function Luke Nowakowski-Krijger
2022-05-05 8:01 ` Petr Vorel
2022-04-28 20:39 ` [LTP] [PATCH v4 11/19] controllers: Expand cgroup_lib shell library Luke Nowakowski-Krijger
2022-05-05 8:16 ` Petr Vorel
2022-05-05 13:53 ` Cyril Hrubis
2022-05-10 11:19 ` Petr Vorel
2022-05-13 20:15 ` Luke Nowakowski-Krijger
2022-07-21 21:01 ` Luke Nowakowski-Krijger
2022-04-28 20:39 ` [LTP] [PATCH v2 12/19] controllers: Update cgroup_fj_* to use newer cgroup lib and test lib Luke Nowakowski-Krijger
2022-04-28 20:39 ` [LTP] [PATCH v2 13/19] controllers: Update memcg_control_test to newer test lib and cgroup lib Luke Nowakowski-Krijger
2022-04-28 20:39 ` [LTP] [PATCH v2 14/19] controllers: Update memcg/regression/* to new test " Luke Nowakowski-Krijger
2022-04-28 20:39 ` [LTP] [PATCH v2 15/19] controllers: Update memcg_stress_test to use newer " Luke Nowakowski-Krijger
2022-04-28 20:39 ` [LTP] [PATCH v2 16/19] controllers: update memcg/functional " Luke Nowakowski-Krijger
2022-04-28 20:39 ` [LTP] [PATCH v2 17/19] controllers: Update pids.sh " Luke Nowakowski-Krijger
2022-04-28 20:39 ` [LTP] [PATCH v2 18/19] controllers: update cpuset_regression_test.sh " Luke Nowakowski-Krijger
2022-04-28 20:39 ` [LTP] [PATCH v2 19/19] controllers: update cgroup_regression_test " Luke Nowakowski-Krijger
2022-05-02 9:19 ` Richard Palethorpe [this message]
2022-05-05 7:49 ` [LTP] [PATCH v4 00/19] Expand Cgroup lib and modify controller tests Petr Vorel
2022-07-06 6:17 ` Li Wang
2022-07-06 6:25 ` Li Wang
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=87ee1ce17u.fsf@suse.de \
--to=rpalethorpe@suse.de \
--cc=ltp@lists.linux.it \
--cc=luke.nowakowskikrijger@canonical.com \
/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