Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
control/ | 03-May-2024 | - | 341 | 188 | ||
functional/ | 03-May-2024 | - | 1,855 | 1,102 | ||
regression/ | 03-May-2024 | - | 639 | 320 | ||
stress/ | 03-May-2024 | - | 273 | 143 | ||
.gitignore | D | 03-May-2024 | 176 | 8 | 7 | |
Makefile | D | 03-May-2024 | 1 KiB | 30 | 4 | |
README | D | 03-May-2024 | 1.7 KiB | 60 | 43 |
README
1TEST SUITE: 2 3The directory memcg contains the tests related to memory resource controller. 4Those testcases can reproduce bugs we found. 5 6There are total 44 testcases that have been added. These testcases 7contain the regression test, basis operation test and stress test of memctl. 8 9NOTE: the test can be run by root only. 10 11TESTS AIM: 12 13The aim of the tests is to track any future regressions, test the functionality 14of memctl.. 15 16FILES DESCRIPTION: 17 18control/memcg_control_test.sh 19-------------------- 20This script runs the testcases of control test. 21 22control/mem_process.c 23-------------------- 24The program allocates memory specified using the '-m' option when 'm' is received 25through the named pipe /tmp/status_pipe and frees it on receiving 'm' again. 26It exits on receiving 'x'. It gets the page size on specifying the '-p' option. 27 28functional/memcgroup_function_test.sh 29-------------------- 30This script runs all the 38 testcases of basis operation. 31 32functional/memcgroup_getpagesize.c 33-------------------- 34The program gets page size through getpagesize(). 35 36functional/memcgroup_process.c 37-------------------- 38The program allocates some memory according to the user input when received SIGUSR. 39And, it frees all the allocated when received SIGUSR again. 40 41stress/memcgroup_stress_test.sh 42-------------------- 43This script runs all the 2 testcases of stress test. 44 45stress/memcgroup_process_stress.c 46-------------------- 47The program allocates some memory in a specified time period when received SIGUSR. 48 49regression/memcg_regression_test.sh 50-------------------- 51This script runs all the 4 testcases of regression test. 52 53regression/memcg_test_*.c/sh 54-------------------- 55The programs run each regression test. 56 57README 58------ 59The one you have gone through. 60