Home
last modified time | relevance | path

Searched refs:hugetlb (Results 1 – 22 of 22) 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 Drun_vmtests.sh78 - hugetlb
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_test ./hugetlb-madvise
295 CATEGORY="userfaultfd" run_test ${uffd_stress_bin} hugetlb 128 32
296 CATEGORY="userfaultfd" run_test ${uffd_stress_bin} hugetlb-private 128 32
327 CATEGORY="hugetlb" run_test ./hugetlb-soft-offline
329 CATEGORY="hugetlb" run_test ./hugetlb-read-hwpoison
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
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.c778 typedef void (*test_fn)(char *mem, size_t size, bool 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.c243 static inline void hugetlb_event(struct hugetlb_cgroup *hugetlb, int idx, in hugetlb_event() argument
246 atomic_long_inc(&hugetlb->events_local[idx][event]); in hugetlb_event()
247 cgroup_file_notify(&hugetlb->events_local_file[idx]); in hugetlb_event()
250 atomic_long_inc(&hugetlb->events[idx][event]); in hugetlb_event()
251 cgroup_file_notify(&hugetlb->events_file[idx]); in hugetlb_event()
252 } while ((hugetlb = parent_hugetlb_cgroup(hugetlb)) && in hugetlb_event()
253 !hugetlb_cgroup_is_root(hugetlb)); in hugetlb_event()
H A Dmemory-failure.c1386 bool hugetlb = false; in __get_hwpoison_page() local
1388 ret = get_hwpoison_hugetlb_folio(folio, &hugetlb, false); in __get_hwpoison_page()
1389 if (hugetlb) { in __get_hwpoison_page()
1498 bool hugetlb = false; in __get_unpoison_page() local
1500 ret = get_hwpoison_hugetlb_folio(folio, &hugetlb, true); in __get_unpoison_page()
1501 if (hugetlb) { in __get_unpoison_page()
H A DMakefile81 obj-$(CONFIG_HUGETLBFS) += hugetlb.o hugetlb_sysfs.o hugetlb_sysctl.o
H A Dhugetlb.c7278 int get_hwpoison_hugetlb_folio(struct folio *folio, bool *hugetlb, bool unpoison) in get_hwpoison_hugetlb_folio() argument
7282 *hugetlb = false; in get_hwpoison_hugetlb_folio()
7285 *hugetlb = true; in get_hwpoison_hugetlb_folio()
/linux/include/linux/
H A Dcgroup_subsys.h53 SUBSYS(hugetlb)
/linux/Documentation/ABI/testing/
H A Dsysfs-kernel-mm-hugepages3 Contact: Nishanth Aravamudan <nacc@us.ibm.com>, hugetlb maintainers
/linux/Documentation/mm/
H A Dpage_migration.rst183 page was migrated. If the page was a non-THP and non-hugetlb page, then
184 this counter is increased by one. If the page was a THP or hugetlb, then
185 this counter is increased by the number of THP or hugetlb subpages.
191 if it was a THP or hugetlb.
/linux/Documentation/admin-guide/
H A Dcgroup-v2.rst1810 hugetlb
1811 Amount of memory used by hugetlb pages. This metric only shows
1812 up if hugetlb usage is accounted for in memory.current (i.e.
2975 hugetlb.<hugepagesize>.current
2976 Show current usage for "hugepagesize" hugetlb. It exists for all
2979 hugetlb.<hugepagesize>.max
2980 Set/show the hard limit of "hugepagesize" hugetlb usage.
2983 hugetlb.<hugepagesize>.events
2989 hugetlb.<hugepagesize>.events.local
2990 Similar to hugetlb.<hugepagesize>.events but the fields in the file
[all …]
H A Dkernel-parameters.txt1215 APIs. In addition, this is the default hugetlb size
2111 Allows heavy hugetlb users to free up some more
2112 memory (7 * PAGE_SIZE for each 2MB hugetlb page).
/linux/Documentation/
H A D.renames.txt130 cgroup-v1/hugetlb admin-guide/cgroup-v1/hugetlb
/linux/
H A DCREDITS2282 D: Maintenance and development of the hugetlb subsystem
H A DMAINTAINERS12099 F: include/linux/hugetlb.h
12101 F: mm/hugetlb.c