1*49cdfc7eSAndroid Build Coastguard Worker 2*49cdfc7eSAndroid Build Coastguard WorkerTEST SUITE: 3*49cdfc7eSAndroid Build Coastguard Worker 4*49cdfc7eSAndroid Build Coastguard WorkerThe directory cpuset contains the tests related to the cpuset controller. 5*49cdfc7eSAndroid Build Coastguard Worker 6*49cdfc7eSAndroid Build Coastguard WorkerCpuset is a mechanism for assigning a set of CPUs and Memory Nodes to a set of 7*49cdfc7eSAndroid Build Coastguard Workertasks. 8*49cdfc7eSAndroid Build Coastguard Worker 9*49cdfc7eSAndroid Build Coastguard WorkerThere are total 258 testcases that have been added till date. Now, These 10*49cdfc7eSAndroid Build Coastguard Workertestcases contain the basis operation test and part functionality test of 11*49cdfc7eSAndroid Build Coastguard Workercpuset, such as: adding/removing cpus/mems, setting flags, exclusive function, 12*49cdfc7eSAndroid Build Coastguard Workerhierarchy relation, inherit relation, cpuset VS syscall and so on 13*49cdfc7eSAndroid Build Coastguard Worker 14*49cdfc7eSAndroid Build Coastguard WorkerNOTE: the test can be run by root only. And 4 CPUs and 3 Memory Nodes is need 15*49cdfc7eSAndroid Build Coastguard Workerto run it at least. 16*49cdfc7eSAndroid Build Coastguard Worker 17*49cdfc7eSAndroid Build Coastguard WorkerTESTS AIM: 18*49cdfc7eSAndroid Build Coastguard Worker 19*49cdfc7eSAndroid Build Coastguard WorkerThe aim of the tests is to test the functionality of cpuset. 20*49cdfc7eSAndroid Build Coastguard Worker 21*49cdfc7eSAndroid Build Coastguard WorkerFILES DESCRIPTION: 22*49cdfc7eSAndroid Build Coastguard Worker 23*49cdfc7eSAndroid Build Coastguard Workercpuset_base_ops_test 24*49cdfc7eSAndroid Build Coastguard Worker-------------------- 25*49cdfc7eSAndroid Build Coastguard WorkerDirectory containing the shell script which is used to test the basis 26*49cdfc7eSAndroid Build Coastguard Workeroperation of cpuset. such as: adding/removing cpus/mems, setting flags. 27*49cdfc7eSAndroid Build Coastguard Worker 28*49cdfc7eSAndroid Build Coastguard Workercpuset_exclusive_test 29*49cdfc7eSAndroid Build Coastguard Worker--------------------- 30*49cdfc7eSAndroid Build Coastguard WorkerDirectory containing the shell script which is used to test exclusive 31*49cdfc7eSAndroid Build Coastguard Workerfunction of cpuset. 32*49cdfc7eSAndroid Build Coastguard Worker 33*49cdfc7eSAndroid Build Coastguard Workercpuset_hierarchy_test 34*49cdfc7eSAndroid Build Coastguard Worker--------------------- 35*49cdfc7eSAndroid Build Coastguard WorkerDirectory containing the shell script is used to test hierarchy relation 36*49cdfc7eSAndroid Build Coastguard Workerof cpuset. 37*49cdfc7eSAndroid Build Coastguard Worker 38*49cdfc7eSAndroid Build Coastguard Workercpuset_syscall_test 39*49cdfc7eSAndroid Build Coastguard Worker------------------- 40*49cdfc7eSAndroid Build Coastguard WorkerDirectory containing the shell script and program which are used to test 41*49cdfc7eSAndroid Build Coastguard Workersyscalls whether they collide with cpuset. 42*49cdfc7eSAndroid Build Coastguard Worker 43*49cdfc7eSAndroid Build Coastguard Workercpuset_hotplug_test 44*49cdfc7eSAndroid Build Coastguard Worker------------------- 45*49cdfc7eSAndroid Build Coastguard WorkerDirectory containing the shell script and program which are used to test 46*49cdfc7eSAndroid Build Coastguard Workercpu hotplug whether they collide with cpuset. 47*49cdfc7eSAndroid Build Coastguard Worker 48*49cdfc7eSAndroid Build Coastguard Workercpuset_load_balance_test 49*49cdfc7eSAndroid Build Coastguard Worker------------------------ 50*49cdfc7eSAndroid Build Coastguard WorkerDirectory containing the shell script and program which are used to test 51*49cdfc7eSAndroid Build Coastguard Workerscheduler domains partitions. Beside that, they are also used to check that 52*49cdfc7eSAndroid Build Coastguard Workerwhether load balance breaks the cpuset's limit. 53*49cdfc7eSAndroid Build Coastguard Worker 54*49cdfc7eSAndroid Build Coastguard Workercpuset_memory_pressure_test 55*49cdfc7eSAndroid Build Coastguard Worker--------------------------- 56*49cdfc7eSAndroid Build Coastguard WorkerDirectory containing the shell script and program which are used to test 57*49cdfc7eSAndroid Build Coastguard Workermemory pressure measurement function. 58*49cdfc7eSAndroid Build Coastguard Worker 59*49cdfc7eSAndroid Build Coastguard Workercpuset_memory_spread_test 60*49cdfc7eSAndroid Build Coastguard Worker------------------------- 61*49cdfc7eSAndroid Build Coastguard WorkerDirectory containing the shell script and program which are used to test 62*49cdfc7eSAndroid Build Coastguard Workerpage caches spread. There are two control files. One is memory_spread_page which 63*49cdfc7eSAndroid Build Coastguard Workeris used to control the allocation of page caches, the other is 64*49cdfc7eSAndroid Build Coastguard Workermemory_spread_slab which is used to control the allocation of slab objects. 65*49cdfc7eSAndroid Build Coastguard WorkerBecause there are much factor to affect the result of slab spread test, it 66*49cdfc7eSAndroid Build Coastguard Workeris hard to test it. So we just test memory_spread_page. 67*49cdfc7eSAndroid Build Coastguard Worker 68*49cdfc7eSAndroid Build Coastguard Workercpuset_memory_test 69*49cdfc7eSAndroid Build Coastguard Worker------------------ 70*49cdfc7eSAndroid Build Coastguard WorkerDirectory containing the shell script and program which are used to test 71*49cdfc7eSAndroid Build Coastguard Workermemory allocation. 72*49cdfc7eSAndroid Build Coastguard Worker 73*49cdfc7eSAndroid Build Coastguard Workercpuset_lib 74*49cdfc7eSAndroid Build Coastguard Worker---------- 75*49cdfc7eSAndroid Build Coastguard WorkerThis directory contains the library and script for cpuset controller testing. 76*49cdfc7eSAndroid Build Coastguard Workersuch as: cpuset_funcs.sh(functions for cpuset test script) 77*49cdfc7eSAndroid Build Coastguard Worker 78*49cdfc7eSAndroid Build Coastguard Workerrun_cpuset_test.sh 79*49cdfc7eSAndroid Build Coastguard Worker------------------ 80*49cdfc7eSAndroid Build Coastguard WorkerThis script runs all the 190 testcases. 81*49cdfc7eSAndroid Build Coastguard Worker 82*49cdfc7eSAndroid Build Coastguard WorkerMakefile 83*49cdfc7eSAndroid Build Coastguard Worker-------- 84*49cdfc7eSAndroid Build Coastguard WorkerEach directory in cpuset has its usual makefile, it is for its directory. 85*49cdfc7eSAndroid Build Coastguard Worker 86*49cdfc7eSAndroid Build Coastguard WorkerREADME 87*49cdfc7eSAndroid Build Coastguard Worker------ 88*49cdfc7eSAndroid Build Coastguard WorkerThe one you have gone through. 89*49cdfc7eSAndroid Build Coastguard Worker 90