[LTP] [PATCH v4] cpuset02: Reimplementing the test6 of cpuset_memory_testset.sh as a separate C testcase
Wei Gao
wegao@suse.com
Thu Nov 7 05:20:59 CET 2024
On Tue, Nov 05, 2024 at 12:44:27PM +0100, Petr Vorel wrote:
> Hi Wei,
>
> This fails to build.
> https://github.com/pevik/ltp/actions/runs/11628250882
>
> Kind regards,
> Petr
Hi Cyril / Petr
I have a question before my next patch.
The old cpuset_memory_testset.sh test is focus ONLY on cgroupv1 test,
it setup cgroupv1 mnt point on /dev/cpuset, even on cgroupv2 support system.
If i add needs_cgroup_ver = TST_CG_V1 on current v4 patch, this test will be
skipped on system which support cgroupv2, since current cgroup framework will
detect cgroupv2 mount point and skip test.
If i do not add needs_cgroup_ver = TST_CG_V1 then error will happen since cgroupv2
does not support cpuset.sched_load_balance anymore.
Finally i have to add new flag such as force_cgroup_ver = TST_CG_V1, so the test
case can continue create cgroupv1 mnt point to continue cgroupv1 test regardless
detect cgroupv2 or not. What's your suggestion? Thanks.
Regards
Gao Wei
More information about the ltp
mailing list