Home
last modified time | relevance | path

Searched refs:hugetlb (Results 1 – 18 of 18) sorted by relevance

/linux/tools/testing/selftests/mm/
H A Duffd-wp-mremap.c74 static void *alloc_one_folio(size_t size, bool private, bool hugetlb) in alloc_one_folio()
76 bool thp = !hugetlb && size > pagesize; in alloc_one_folio()
104 if (hugetlb) { in alloc_one_folio()
167 bool swapout, bool hugetlb) in test_one_folio()
174 assert(!(hugetlb && swapout)); in test_one_folio()
176 ksft_print_msg("[RUN] %s(size=%zu, private=%s, swapout=%s, hugetlb=%s)\n", in test_one_folio()
181 hugetlb ? "true" : "false"); in test_one_folio()
184 mem = alloc_one_folio(size, private, hugetlb); in test_one_folio()
243 ksft_test_result_pass("%s(size=%zu, private=%s, swapout=%s, hugetlb=%s)\n", in test_one_folio()
248 hugetlb
63 alloc_one_folio(size_t size,bool private,bool hugetlb) alloc_one_folio() argument
156 test_one_folio(uffd_global_test_opts_t * gopts,size_t size,bool private,bool swapout,bool hugetlb) test_one_folio() argument
252 bool hugetlb; global() member
[all...]
H A Dcharge_reserved_hugetlb.sh42 echo "+hugetlb" >$cgroup_path/cgroup.subtree_control
44 cgroup_path=$(mount -t cgroup | grep ",hugetlb" | awk '{print $3}')
47 mount -t cgroup memory,hugetlb $cgroup_path
116 $cgroup_path/$name/hugetlb.${MB_DISPLAY}${UNIT}.$fault_limit_file
120 $cgroup_path/$name/hugetlb.${MB_DISPLAY}${UNIT}.$reservation_limit_file
155 local path="$cgroup_path/$cgroup/hugetlb.${MB_DISPLAY}${UNIT}.$reservation_usage_file"
163 local path="$cgroup_path/$cgroup/hugetlb.${MB_DISPLAY}${UNIT}.$reservation_usage_file"
171 local path="$cgroup_path/$cgroup/hugetlb.${MB_DISPLAY}${UNIT}.$fault_usage_file"
193 local hugetlb_usage=$cgroup_path/$cgroup/hugetlb.${MB_DISPLAY}${UNIT}.$fault_usage_file
194 local reserved_usage=$cgroup_path/$cgroup/hugetlb
[all...]
H A D.gitignore7 hugetlb-mmap
8 hugetlb-mremap
9 hugetlb-shm
10 hugetlb-vmemmap
11 hugetlb-madvise
12 hugetlb-read-hwpoison
13 hugetlb-soft-offline
H A Drun_vmtests.sh78 - hugetlb
134 # -t: thp=on, -T: thp=off, -H: hugetlb=on
188 if [ ${CATEGORY} == "thp" -o ${CATEGORY} == "hugetlb" ]; then
262 CATEGORY="hugetlb" run_test ./hugetlb-mmap
263 CATEGORY="hugetlb" run_test ./hugetlb-shm
264 CATEGORY="hugetlb" run_test ./hugetlb-mremap
265 CATEGORY="hugetlb" run_tes
[all...]
H A DMakefile63 TEST_GEN_FILES += hugetlb-madvise
64 TEST_GEN_FILES += hugetlb-mmap
65 TEST_GEN_FILES += hugetlb-mremap
66 TEST_GEN_FILES += hugetlb-read-hwpoison
67 TEST_GEN_FILES += hugetlb-shm
68 TEST_GEN_FILES += hugetlb-soft-offline
69 TEST_GEN_FILES += hugetlb-vmemmap
H A Dva_high_addr_switch.sh
H A Dhugetlb_reparenting_test.sh32 echo "+hugetlb +memory" >$CGROUP_ROOT/cgroup.subtree_control
34 CGROUP_ROOT=$(mount -t cgroup | grep ",hugetlb" | awk '{print $3}')
37 mount -t cgroup memory,hugetlb $CGROUP_ROOT
116 "$CGROUP_ROOT/a/hugetlb.${MB_DISPLAY}${UNIT}.$usage_file" "$expected_a_hugetlb"
120 "$CGROUP_ROOT/a/b/hugetlb.${MB_DISPLAY}${UNIT}.$usage_file" "$expected_b_hugetlb"
129 echo "+hugetlb +memory" >$CGROUP_ROOT/a/cgroup.subtree_control
193 echo "Test parent and child hugetlb usage"
220 echo "Test child only hugetlb usage"
H A Duffd-common.c33 static int uffd_mem_fd_create(off_t mem_size, bool hugetlb) in uffd_mem_fd_create() argument
38 if (hugetlb) in uffd_mem_fd_create()
H A Dcow.c249 * With hugetlb, some vmsplice() tests are currently expected to in do_test_cow_in_parent()
380 * With hugetlb, some vmsplice() tests are currently expected to in do_test_vmsplice_in_parent()
778 typedef void (*test_fn)(char *mem, size_t size, bool hugetlb); in do_run_with_base_page()
1057 log_test_start("%s ... with hugetlb (%zu kB)", desc, in run_with_hugetlb()
1073 * We need a total of two hugetlb pages to handle COW/unsharing in run_with_hugetlb()
1762 log_test_start("%s ... with memfd hugetlb (%zu kB)", desc, in run_with_memfd_hugetlb()
/linux/Documentation/translations/zh_CN/mm/
H A Dhugetlbfs_reserv.rst284 助函数,该函数调用这些低级函数中的一个。这些低级函数在源代码(mm/hugetlb.c)中得到了相当好的
416 * 当cpuset被配置时,它打破了严格的hugetlb页面预留,因为计数是在一个全局变量上完
421 * hugetlb映射的语义变化是不可取的。然而,为了预留一些语义,我们退回到检查当前空闲
432 最完整的hugetlb测试集在libhugetlbfs仓库。如果你修改了任何hugetlb相关的代码,请使用
433 libhugetlbfs测试套件来检查回归情况。此外,如果你添加了任何新的hugetlb功能,请在
H A Dpage_migration.rst209 页是一个非THP和非hugetlb页,那么这个计数器会增加1。如果该页面是一个THP或hugetlb
210 页面,那么这个计数器会随着THP或hugetlb子页面的数量而增加。例如,迁移一个有4KB大小
214 果是THP或hugetlb,这个计数将被子页的数量增加。
/linux/mm/
H A Dhugetlb_cgroup.c240 static inline void hugetlb_event(struct hugetlb_cgroup *hugetlb, int idx, in hugetlb_event() argument
243 atomic_long_inc(&hugetlb->events_local[idx][event]); in hugetlb_event()
244 cgroup_file_notify(&hugetlb->events_local_file[idx]); in hugetlb_event()
247 atomic_long_inc(&hugetlb->events[idx][event]); in hugetlb_event()
248 cgroup_file_notify(&hugetlb->events_file[idx]); in hugetlb_event()
249 } while ((hugetlb = parent_hugetlb_cgroup(hugetlb)) && in hugetlb_event()
250 !hugetlb_cgroup_is_root(hugetlb)); in hugetlb_event()
H A Ddebug.c53 DEF_PAGETYPE_NAME(hugetlb),
/linux/include/linux/
H A Dcgroup_subsys.h53 SUBSYS(hugetlb)
H A Dpage-flags.h1043 FOLIO_TYPE_OPS(hugetlb, hugetlb) in PAGE_TYPE_OPS()
1045 FOLIO_TEST_FLAG_FALSE(hugetlb) in PAGE_TYPE_OPS()
H A Dhugetlb.h155 int get_hwpoison_hugetlb_folio(struct folio *folio, bool *hugetlb, bool unpoison);
417 static inline int get_hwpoison_hugetlb_folio(struct folio *folio, bool *hugetlb, bool unpoison) in get_hwpoison_hugetlb_folio() argument
/linux/Documentation/ABI/testing/
H A Dsysfs-kernel-mm-hugepages3 Contact: Nishanth Aravamudan <nacc@us.ibm.com>, hugetlb maintainers
/linux/Documentation/
H A D.renames.txt130 cgroup-v1/hugetlb admin-guide/cgroup-v1/hugetlb