-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhugepage_migration.rc
86 lines (75 loc) · 3.48 KB
/
hugepage_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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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
. test_core/lib/setup_memcg_base.sh
HPSIZE=2048
HPNUM=100
HPNUM_FOR_HOTREMOVE=$[MEMTOTAL/HPSIZE/2]
NUMNODE=
. setup_hugepage_migration_test.sh
. setup_memcg_consistency.sh
#!TABLE: hugepage_migration.rc.table
TEST_TITLE=race_migratepages_and_map_fault_unmap
TEST_PREPARE=prepare_HM_base
TEST_CLEANUP=cleanup_memory_hotremove
TEST_CONTROLLER=control_race_migratepages_and_map_fault_unmap
TEST_CHECKER=check_race_migratepages_and_map_fault_unmap
EXPECTED_RETURN_CODE="START EXIT"
FIXEDBY_SUBJECT="mm/hugetlb: add migration entry check in __unmap_hugepage_range|mm/hugetlb: add migration/hwpoisoned entry check in hugetlb_change_protection|mm/hugetlb: fix getting refcount 0 page in hugetlb_fault()|mm/hugetlb: take page table lock in follow_huge_pmd()|mm/hugetlb: pmd_huge() returns true for non-present hugepage"
FIXEDBY_PATCH_SEARCH_DATE="Feb 10 2015"
do_test_async
TEST_TITLE=race_move_pages_and_map_fault_unmap
TEST_PREPARE=prepare_HM_base
TEST_CLEANUP=cleanup_HM_base
TEST_CONTROLLER=control_race_move_pages_and_map_fault_unmap
TEST_CHECKER=check_race_move_pages_and_map_fault_unmap
EXPECTED_RETURN_CODE="START EXIT"
FIXEDBY_SUBJECT="mm/hugetlb: add migration entry check in __unmap_hugepage_range|mm/hugetlb: add migration/hwpoisoned entry check in hugetlb_change_protection|mm/hugetlb: fix getting refcount 0 page in hugetlb_fault()|mm/hugetlb: take page table lock in follow_huge_pmd()|mm/hugetlb: pmd_huge() returns true for non-present hugepage"
FIXEDBY_PATCH_SEARCH_DATE="Feb 10 2015"
do_test_async
TEST_TITLE=race_gup_and_migration
TEST_PREPARE=prepare_HM_base
TEST_CLEANUP=cleanup_race_gup_and_migration
TEST_CONTROLLER=control_race_gup_and_migration
TEST_CHECKER=check_race_gup_and_migration
TEST_PROGRAM="$madvise_hwpoison_hugepages -m private -u -n 30 -h 2048 -l 10"
EXPECTED_RETURN_CODE="START EXIT"
FIXEDBY_SUBJECT="mm/hugetlb: add migration entry check in __unmap_hugepage_range|mm/hugetlb: add migration/hwpoisoned entry check in hugetlb_change_protection|mm/hugetlb: fix getting refcount 0 page in hugetlb_fault()|mm/hugetlb: take page table lock in follow_huge_pmd()|mm/hugetlb: pmd_huge() returns true for non-present hugepage"
FIXEDBY_PATCH_SEARCH_DATE="Feb 10 2015"
do_test_sync
TEST_TITLE=memcg_consistency
TEST_PREPARE=prepare_memcg_consistency
TEST_CLEANUP=cleanup_memcg_consistency
TEST_CONTROLLER=control_memcg_consistency
TEST_CHECKER=check_memcg_consistency
TEST_PROGRAM="$test_alloc -m shared -h $HPSIZE"
EXPECTED_RETURN_CODE="START EXIT"
do_test_sync
. setup_hugepage_pingpong.sh
#!TABLE: hugepage_pingpong.rc.table
TEST_TITLE=hugepage_pingpong_race_with_numa_maps
TEST_PREPARE=prepare_hugepage_pingpong
TEST_CLEANUP=cleanup_hugepage_pingpong
TEST_CONTROLLER=control_hugepage_pingpong_race_with_numa_maps
TEST_CHECKER=check_hugepage_pingpong
EXPECTED_RETURN_CODE="START EXIT"
PINGPONG_NR_PROC=2
PINGPONG_NR_HPS=1
PINGPONG_ALLOC_TYPES=0xff
FIXEDBY_SUBJECT="mm: hugetlb: introduce PageHugeActive flag"
FIXEDBY_PATCH_SEARCH_DATE="Mar 30 2015"
do_test_async
TEST_TITLE=hugepage_pingpong_race
TEST_PREPARE=prepare_hugepage_pingpong
TEST_CLEANUP=cleanup_hugepage_pingpong
TEST_CONTROLLER=control_hugepage_pingpong_race
TEST_CHECKER=check_hugepage_pingpong
EXPECTED_RETURN_CODE="START EXIT"
PINGPONG_NR_PROC=2
PINGPONG_NR_HPS=1
PINGPONG_ALLOC_TYPES=0xff
FIXEDBY_SUBJECT="mm: hugetlb: introduce PageHugeActive flag"
FIXEDBY_PATCH_SEARCH_DATE="Mar 30 2015"
do_test_async