From: Richard Palethorpe <rpalethorpe@suse.de>
To: Luke Nowakowski-Krijger <luke.nowakowskikrijger@canonical.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH 00/16] Expand Cgroup lib and modify controller tests
Date: Mon, 24 Jan 2022 09:40:20 +0000 [thread overview]
Message-ID: <87sftdzcrr.fsf@suse.de> (raw)
In-Reply-To: <cover.1642601554.git.luke.nowakowskikrijger@canonical.com>
Hello Luke,
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.
Thanks I am really happy to see this!
It would be nice to see the tests rewritten in C, but if this works,
then perhaps we can get many more tests working on both V1 and V2 quite
quickly. Including perhaps some kernel selftests (IIRC there are some in
shell as well).
>
> Luke Nowakowski-Krijger (16):
> API/cgroup: Modify tst_cgroup_print_config for easier parsing and
> consumption
> API/cgroup: Add option for specific pid to tst_cgroup_opts
> API/cgroup: Add cgroup_find_root helper function
> API/cgroup: Implement tst_cgroup_load_config()
> API/cgroup: Add more controllers to tst_cgroup
> API/cgroup: Change to TWARN when v2 controllers change
> testcases/lib: Implement tst_cgctl binary
> 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 | 7 +-
> lib/tst_cgroup.c | 314 +++++++++++++++++-
> .../cgroup/cgroup_regression_test.sh | 17 +-
> .../controllers/cgroup_fj/cgroup_fj_common.sh | 105 ++----
> .../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 | 128 +++++--
> .../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 | 35 +-
> .../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 | 65 +---
> testcases/lib/Makefile | 2 +-
> testcases/lib/tst_cgctl.c | 69 ++++
> 23 files changed, 966 insertions(+), 769 deletions(-)
> create mode 100644 testcases/lib/tst_cgctl.c
--
Thank you,
Richard.
--
Mailing list info: https://lists.linux.it/listinfo/ltp
prev parent reply other threads:[~2022-01-24 9:47 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-19 14:44 [LTP] [PATCH 00/16] Expand Cgroup lib and modify controller tests Luke Nowakowski-Krijger
2022-01-19 14:44 ` [LTP] [PATCH v2 01/16] API/cgroup: Modify tst_cgroup_print_config for easier parsing and consumption Luke Nowakowski-Krijger
2022-01-24 11:16 ` Richard Palethorpe
2022-01-19 14:44 ` [LTP] [PATCH 02/16] API/cgroup: Add option for specific pid to tst_cgroup_opts Luke Nowakowski-Krijger
2022-01-19 14:44 ` [LTP] [PATCH v2 03/16] API/cgroup: Add cgroup_find_root helper function Luke Nowakowski-Krijger
2022-01-19 14:44 ` [LTP] [PATCH v2 04/16] API/cgroup: Implement tst_cgroup_load_config() Luke Nowakowski-Krijger
2022-01-24 12:05 ` Richard Palethorpe
2022-03-02 18:08 ` Luke Nowakowski-Krijger
2022-01-19 14:44 ` [LTP] [PATCH 05/16] API/cgroup: Add more controllers to tst_cgroup Luke Nowakowski-Krijger
2022-01-24 7:10 ` Li Wang
2022-01-24 7:21 ` Li Wang
2022-01-24 11:36 ` Richard Palethorpe
2022-01-19 14:44 ` [LTP] [PATCH 06/16] API/cgroup: Change to TWARN when v2 controllers change Luke Nowakowski-Krijger
2022-01-24 10:44 ` Richard Palethorpe
2022-01-19 14:44 ` [LTP] [PATCH 07/16] testcases/lib: Implement tst_cgctl binary Luke Nowakowski-Krijger
2022-01-24 7:54 ` Li Wang
2022-01-19 14:44 ` [LTP] [PATCH v2 08/16] controllers: Expand cgroup_lib shell library Luke Nowakowski-Krijger
2022-01-19 14:44 ` [LTP] [PATCH 09/16] controllers: Update cgroup_fj_* to use newer cgroup lib and test lib Luke Nowakowski-Krijger
2022-01-24 8:51 ` Li Wang
2022-03-02 23:41 ` Luke Nowakowski-Krijger
2022-01-19 14:44 ` [LTP] [PATCH 10/16] controllers: Update memcg_control_test to newer test lib and cgroup lib Luke Nowakowski-Krijger
2022-01-24 9:43 ` Li Wang
2022-01-24 12:24 ` Richard Palethorpe
2022-03-02 21:37 ` Luke Nowakowski-Krijger
2022-03-04 7:11 ` Li Wang
2022-01-19 14:44 ` [LTP] [PATCH 11/16] controllers: Update memcg/regression/* to new test " Luke Nowakowski-Krijger
2022-01-19 14:44 ` [LTP] [PATCH 12/16] controllers: Update memcg_stress_test to use newer " Luke Nowakowski-Krijger
2022-01-19 14:44 ` [LTP] [PATCH 13/16] controllers: update memcg/functional " Luke Nowakowski-Krijger
2022-01-19 14:44 ` [LTP] [PATCH 14/16] controllers: Update pids.sh " Luke Nowakowski-Krijger
2022-01-24 12:26 ` Richard Palethorpe
2022-01-19 14:44 ` [LTP] [PATCH 15/16] controllers: update cpuset_regression_test.sh " Luke Nowakowski-Krijger
2022-01-19 14:44 ` [LTP] [PATCH 16/16] controllers: update cgroup_regression_test " Luke Nowakowski-Krijger
2022-01-24 9:40 ` Richard Palethorpe [this message]
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=87sftdzcrr.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.