-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththp_migration.rc
59 lines (52 loc) · 1.68 KB
/
thp_migration.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
KERNEL_SRC=/src/linux-dev
. test_core/lib/common.sh
. test_core/lib/setup_mce_tools.sh
. test_core/lib/setup_hugetlb_base.sh
. test_core/lib/setup_thp_base.sh
HPSIZE=2048
HPNUM=$[MEMTOTAL/HPSIZE/2]
DEFAULT_TEST_PREPARE=prepare_test
DEFAULT_TEST_CLEANUP=cleanup_test
DEFAULT_TEST_CONTROLLER=control_hugepage_migration
DEFAULT_TEST_CHECKER=check_hugepage_migration
. setup_thp_migration_test.sh
TEST_TITLE="thp_migration_auto_numa"
EXPECTED_RETURN_CODE="START EXIT"
NR_THPS=1
TEST_PROGRAM="${TESTALLOCTHP} -n $NR_THPS"
TEST_CONTROLLER=control_thp_migration_auto_numa
TEST_CHECKER=check_thp_migration_auto_numa
TEST_PREPARE=prepare_thp_migration_auto_numa
TEST_CLEANUP=cleanup_thp_migration_auto_numa
TEST_FLAGS=devel
do_test_sync
TEST_TITLE="mlock_on_shared_thp"
EXPECTED_RETURN_CODE="START EXIT"
NR_THPS=2
TEST_PROGRAM="${TESTMLOCKONSHAREDTHP} -n $NR_THPS"
TEST_CONTROLLER=control_$TEST_TITLE
TEST_CHECKER=check_$TEST_TITLE
TEST_PREPARE=prepare_$TEST_TITLE
TEST_CLEANUP=cleanup_$TEST_TITLE
TEST_FLAGS=devel
do_test_sync
TEST_TITLE="mprotect_on_shared_thp"
EXPECTED_RETURN_CODE="START EXIT"
NR_THPS=2
TEST_PROGRAM="${TESTMPROTECTONSHAREDTHP} -n $NR_THPS"
TEST_CONTROLLER=control_mprotect_on_shared_thp
TEST_CHECKER=check_mprotect_on_shared_thp
TEST_PREPARE=prepare_mprotect_on_shared_thp
TEST_CLEANUP=cleanup_mprotect_on_shared_thp
TEST_FLAGS=devel
do_test_sync
TEST_TITLE="mprotect_on_shared_thp_unaligned"
EXPECTED_RETURN_CODE="START EXIT"
NR_THPS=2
TEST_PROGRAM="${TESTMPROTECTONSHAREDTHP} -u -n $NR_THPS"
TEST_CONTROLLER=control_mprotect_on_shared_thp
TEST_CHECKER=check_mprotect_on_shared_thp
TEST_PREPARE=prepare_mprotect_on_shared_thp
TEST_CLEANUP=cleanup_mprotect_on_shared_thp
TEST_FLAGS=devel
do_test_sync