Open rameble opened 1 year ago
The easiest way is probably to copy the controllers runtest file and delete everything you are not interested in from the copy.
I guess that it would make sense to split the cgroup runtest file into several based on the controllers it's testing.
+1 for split runtest files
If you want to try run the individual test of cgroup in your ltp environment. From path /opt/ltp/testcases/bin/ there are some cgroup invidual test cases, worth checking.
$ ./cgroup_core02 tst_test.c:1558: TINFO: Timeout per run is 0h 00m 30s cgroup_core02.c:84: TPASS: test_lesser_ns_open passed: ENOENT (2)
Summary: passed 1 failed 0 broken 0 skipped 0 warnings 0
$ ./cgroup_core01 tst_test.c:1558: TINFO: Timeout per run is 0h 00m 30s cgroup_core01.c:63: TPASS: test_lesser_euid_open passed: EACCES (13)
Summary: passed 1 failed 0 broken 0 skipped 0 warnings 0
FYI - There are few other tests in the same location which needs preconfig test data, which gets set as part of the complete run of cgroup controller tests I suppose
/opt/ltp/testcases/bin/
-rwxrwxr-x 1 root root 3532 Mar 9 21:20 cgroup_lib.sh -rwxrwxr-x 1 root root 208 Mar 9 21:20 cgroup_regression_3_1.sh -rwxrwxr-x 1 root root 314 Mar 9 21:20 cgroup_regression_5_1.sh -rwxrwxr-x 1 root root 204 Mar 9 21:20 cgroup_regression_3_2.sh -rwxrwxr-x 1 root root 291 Mar 9 21:20 cgroup_regression_6_1.sh -rwxrwxr-x 1 root root 248 Mar 9 21:20 cgroup_regression_5_2.sh -rwxrwxr-x 1 root root 248 Mar 9 21:20 cgroup_regression_6_2.sh -rwxrwxr-x 1 root root 10267 Mar 9 21:20 cgroup_regression_test.sh -rwxrwxr-x 1 root root 738912 Mar 9 21:20 cgroup_core01 -rwxrwxr-x 1 root root 18168 Mar 9 21:20 cgroup_regression_fork_processes -rwxrwxr-x 1 root root 745592 Mar 9 21:20 cgroup_core02 -rwxrwxr-x 1 root root 47720 Mar 9 21:20 cgroup_regression_getdelays -rwxrwxr-x 1 root root 2128 Mar 9 21:20 cgroup_fj_common.sh -rwxrwxr-x 1 root root 6283 Mar 9 21:20 cgroup_fj_function.sh -rwxrwxr-x 1 root root 3906 Mar 9 21:20 cgroup_fj_stress.sh -rwxrwxr-x 1 root root 20896 Mar 9 21:20 cgroup_fj_proc -rwxrwxr-x 1 root root 779512 Mar 9 21:20 cgroup_xattr
And also while running the tests, you can also use this systemd command to monitor cgroup memory controller stats on your system.
$ systemd-cgls memory
and
$ systemd-cgtop
I use ./runltp -f controllers to test cgroup function. It is very time-consuming.
I want to only test cgroup memory subsystem. Is there some commands to test only memory subsystem of cgroup?
Thanks.