1f08c3bdfSopenharmony_ciThe complete dir tree is for testcases for resource management testing of linux kernel.
2f08c3bdfSopenharmony_ciFor the test plan please refer to the file testplan.txt
3f08c3bdfSopenharmony_ci
4f08c3bdfSopenharmony_ci--------------
5f08c3bdfSopenharmony_ci***WARNING:***
6f08c3bdfSopenharmony_ci--------------
7f08c3bdfSopenharmony_ciThe cpu controller test creates the cpu controller device as /dev/cpuctl. In
8f08c3bdfSopenharmony_cicase you already have /dev/cpuctl it may be overwritten. So please rename it
9f08c3bdfSopenharmony_cito have a backup of your file.
10f08c3bdfSopenharmony_ci
11f08c3bdfSopenharmony_ciThe cpuset controller also creates the device as /dev/cpuset, so please do the
12f08c3bdfSopenharmony_cisimilar work as above.
13f08c3bdfSopenharmony_ci
14f08c3bdfSopenharmony_ci
15f08c3bdfSopenharmony_ciFILES DESCRIPTION:
16f08c3bdfSopenharmony_ci
17f08c3bdfSopenharmony_citestplan.txt
18f08c3bdfSopenharmony_ci------------
19f08c3bdfSopenharmony_ciA brief description of the plan for resource management testing.
20f08c3bdfSopenharmony_ci
21f08c3bdfSopenharmony_citest_controllers.sh
22f08c3bdfSopenharmony_ci-------------------
23f08c3bdfSopenharmony_ciThis is the main script file that starts the test. It first checks if the
24f08c3bdfSopenharmony_cicontrollers are enabled. If not enabled then it will not run the test and
25f08c3bdfSopenharmony_ciwill exit giving warning.
26f08c3bdfSopenharmony_ci
27f08c3bdfSopenharmony_ciREADME
28f08c3bdfSopenharmony_ci------
29f08c3bdfSopenharmony_ciThis file.
30f08c3bdfSopenharmony_ci
31f08c3bdfSopenharmony_cicgroup
32f08c3bdfSopenharmony_ci------
33f08c3bdfSopenharmony_ciDirectory containing the cgroup regression testcases.
34f08c3bdfSopenharmony_ci
35f08c3bdfSopenharmony_cicpuctl
36f08c3bdfSopenharmony_ci------
37f08c3bdfSopenharmony_ciDirectory containing the cpu controller testcases. A similar directory will
38f08c3bdfSopenharmony_cibe created for any new controller.
39f08c3bdfSopenharmony_ci
40f08c3bdfSopenharmony_cimemctl
41f08c3bdfSopenharmony_ci------
42f08c3bdfSopenharmony_ciDirectory containing the memory controller testcases. A similar directory will
43f08c3bdfSopenharmony_cibe created for any new controller.
44f08c3bdfSopenharmony_ci
45f08c3bdfSopenharmony_cicpuset
46f08c3bdfSopenharmony_ci------
47f08c3bdfSopenharmony_ciDirectory containing the cpuset controller testcases. A similar directory will
48f08c3bdfSopenharmony_cibe created for any new controller.
49f08c3bdfSopenharmony_ci
50f08c3bdfSopenharmony_cilibcontrollers
51f08c3bdfSopenharmony_ci--------------
52f08c3bdfSopenharmony_ciThis directory contains the library for cpucontroller testing.
53f08c3bdfSopenharmony_ci
54f08c3bdfSopenharmony_cicpuacct
55f08c3bdfSopenharmony_ci-----------
56f08c3bdfSopenharmony_ciDirectory containing the cpu accounting controller testcases.
57f08c3bdfSopenharmony_ci
58f08c3bdfSopenharmony_ciMakefile
59f08c3bdfSopenharmony_ci--------
60f08c3bdfSopenharmony_ciThe usual Makefile to conduct all the tests.
61f08c3bdfSopenharmony_ci
62f08c3bdfSopenharmony_ciBefore starting compilation this file checks if the kernel is supporting the
63f08c3bdfSopenharmony_cicpu controller. If yes it enters lower directory and compiles the source files
64f08c3bdfSopenharmony_ciotherwise exits warning to user.
65f08c3bdfSopenharmony_ciHence the user has to take care of the fact that the test runs or just quiets.
66f08c3bdfSopenharmony_ci(Your kernel needs to be 2.6.24 onwards with proper config options)
67f08c3bdfSopenharmony_ci
68f08c3bdfSopenharmony_ciAnd before starting test cpuset, Please check whether the test system has
69f08c3bdfSopenharmony_ci4 CPUs and 3 Memory nodes and the kernel version is 2.6.28 or above.
70f08c3bdfSopenharmony_ci
71f08c3bdfSopenharmony_ciA snapshot of config file options is given below:
72f08c3bdfSopenharmony_ciCONFIG_CGROUPS=y
73f08c3bdfSopenharmony_ciCONFIG_CGROUP_DEBUG=y
74f08c3bdfSopenharmony_ciCONFIG_CGROUP_NS=y
75f08c3bdfSopenharmony_ciCONFIG_CPUSETS=y
76f08c3bdfSopenharmony_ciCONFIG_PROC_PID_CPUSET=y
77f08c3bdfSopenharmony_ciCONFIG_GROUP_SCHED=y
78f08c3bdfSopenharmony_ciCONFIG_FAIR_GROUP_SCHED=y
79f08c3bdfSopenharmony_ciCONFIG_RT_GROUP_SCHED=y
80f08c3bdfSopenharmony_ci# CONFIG_USER_SCHED is not set
81f08c3bdfSopenharmony_ciCONFIG_CGROUP_SCHED=y
82