1f08c3bdfSopenharmony_ci 2f08c3bdfSopenharmony_ciTEST SUITE: 3f08c3bdfSopenharmony_ci 4f08c3bdfSopenharmony_ciThe directory cpuset contains the tests related to the cpuset controller. 5f08c3bdfSopenharmony_ci 6f08c3bdfSopenharmony_ciCpuset is a mechanism for assigning a set of CPUs and Memory Nodes to a set of 7f08c3bdfSopenharmony_citasks. 8f08c3bdfSopenharmony_ci 9f08c3bdfSopenharmony_ciThere are total 258 testcases that have been added till date. Now, These 10f08c3bdfSopenharmony_citestcases contain the basis operation test and part functionality test of 11f08c3bdfSopenharmony_cicpuset, such as: adding/removing cpus/mems, setting flags, exclusive function, 12f08c3bdfSopenharmony_cihierarchy relation, inherit relation, cpuset VS syscall and so on 13f08c3bdfSopenharmony_ci 14f08c3bdfSopenharmony_ciNOTE: the test can be run by root only. And 4 CPUs and 3 Memory Nodes is need 15f08c3bdfSopenharmony_cito run it at least. 16f08c3bdfSopenharmony_ci 17f08c3bdfSopenharmony_ciTESTS AIM: 18f08c3bdfSopenharmony_ci 19f08c3bdfSopenharmony_ciThe aim of the tests is to test the functionality of cpuset. 20f08c3bdfSopenharmony_ci 21f08c3bdfSopenharmony_ciFILES DESCRIPTION: 22f08c3bdfSopenharmony_ci 23f08c3bdfSopenharmony_cicpuset_base_ops_test 24f08c3bdfSopenharmony_ci-------------------- 25f08c3bdfSopenharmony_ciDirectory containing the shell script which is used to test the basis 26f08c3bdfSopenharmony_cioperation of cpuset. such as: adding/removing cpus/mems, setting flags. 27f08c3bdfSopenharmony_ci 28f08c3bdfSopenharmony_cicpuset_exclusive_test 29f08c3bdfSopenharmony_ci--------------------- 30f08c3bdfSopenharmony_ciDirectory containing the shell script which is used to test exclusive 31f08c3bdfSopenharmony_cifunction of cpuset. 32f08c3bdfSopenharmony_ci 33f08c3bdfSopenharmony_cicpuset_hierarchy_test 34f08c3bdfSopenharmony_ci--------------------- 35f08c3bdfSopenharmony_ciDirectory containing the shell script is used to test hierarchy relation 36f08c3bdfSopenharmony_ciof cpuset. 37f08c3bdfSopenharmony_ci 38f08c3bdfSopenharmony_cicpuset_syscall_test 39f08c3bdfSopenharmony_ci------------------- 40f08c3bdfSopenharmony_ciDirectory containing the shell script and program which are used to test 41f08c3bdfSopenharmony_cisyscalls whether they collide with cpuset. 42f08c3bdfSopenharmony_ci 43f08c3bdfSopenharmony_cicpuset_hotplug_test 44f08c3bdfSopenharmony_ci------------------- 45f08c3bdfSopenharmony_ciDirectory containing the shell script and program which are used to test 46f08c3bdfSopenharmony_cicpu hotplug whether they collide with cpuset. 47f08c3bdfSopenharmony_ci 48f08c3bdfSopenharmony_cicpuset_load_balance_test 49f08c3bdfSopenharmony_ci------------------------ 50f08c3bdfSopenharmony_ciDirectory containing the shell script and program which are used to test 51f08c3bdfSopenharmony_cischeduler domains partitions. Beside that, they are also used to check that 52f08c3bdfSopenharmony_ciwhether load balance breaks the cpuset's limit. 53f08c3bdfSopenharmony_ci 54f08c3bdfSopenharmony_cicpuset_memory_pressure_test 55f08c3bdfSopenharmony_ci--------------------------- 56f08c3bdfSopenharmony_ciDirectory containing the shell script and program which are used to test 57f08c3bdfSopenharmony_cimemory pressure measurement function. 58f08c3bdfSopenharmony_ci 59f08c3bdfSopenharmony_cicpuset_memory_spread_test 60f08c3bdfSopenharmony_ci------------------------- 61f08c3bdfSopenharmony_ciDirectory containing the shell script and program which are used to test 62f08c3bdfSopenharmony_cipage caches spread. There are two control files. One is memory_spread_page which 63f08c3bdfSopenharmony_ciis used to control the allocation of page caches, the other is 64f08c3bdfSopenharmony_cimemory_spread_slab which is used to control the allocation of slab objects. 65f08c3bdfSopenharmony_ciBecause there are much factor to affect the result of slab spread test, it 66f08c3bdfSopenharmony_ciis hard to test it. So we just test memory_spread_page. 67f08c3bdfSopenharmony_ci 68f08c3bdfSopenharmony_cicpuset_memory_test 69f08c3bdfSopenharmony_ci------------------ 70f08c3bdfSopenharmony_ciDirectory containing the shell script and program which are used to test 71f08c3bdfSopenharmony_cimemory allocation. 72f08c3bdfSopenharmony_ci 73f08c3bdfSopenharmony_cicpuset_lib 74f08c3bdfSopenharmony_ci---------- 75f08c3bdfSopenharmony_ciThis directory contains the library and script for cpuset controller testing. 76f08c3bdfSopenharmony_cisuch as: cpuset_funcs.sh(functions for cpuset test script) 77f08c3bdfSopenharmony_ci 78f08c3bdfSopenharmony_cirun_cpuset_test.sh 79f08c3bdfSopenharmony_ci------------------ 80f08c3bdfSopenharmony_ciThis script runs all the 190 testcases. 81f08c3bdfSopenharmony_ci 82f08c3bdfSopenharmony_ciMakefile 83f08c3bdfSopenharmony_ci-------- 84f08c3bdfSopenharmony_ciEach directory in cpuset has its usual makefile, it is for its directory. 85f08c3bdfSopenharmony_ci 86f08c3bdfSopenharmony_ciREADME 87f08c3bdfSopenharmony_ci------ 88f08c3bdfSopenharmony_ciThe one you have gone through. 89f08c3bdfSopenharmony_ci 90