| /linux/tools/testing/selftests/mm/ |
| H A D | uffd-wp-mremap.c | 63 static void *alloc_one_folio(size_t size, bool private, bool hugetlb) in alloc_one_folio() argument 65 bool thp = !hugetlb && size > pagesize; in alloc_one_folio() 93 if (hugetlb) { in alloc_one_folio() 156 bool swapout, bool hugetlb) in test_one_folio() argument 163 assert(!(hugetlb && swapout)); in test_one_folio() 170 hugetlb ? "true" : "false"); in test_one_folio() 173 mem = alloc_one_folio(size, private, hugetlb); in test_one_folio() 237 hugetlb ? "true" : "false"); in test_one_folio() 252 bool hugetlb; member 262 .hugetlb = false, [all …]
|
| H A D | charge_reserved_hugetlb.sh | 41 echo "+hugetlb" >$cgroup_path/cgroup.subtree_control 43 cgroup_path=$(mount -t cgroup | grep ",hugetlb" | awk '{print $3}') 46 mount -t cgroup memory,hugetlb $cgroup_path 106 echo "$cgroup_limit" >$cgroup_path/$name/hugetlb.${MB}MB.$fault_limit_file 110 $cgroup_path/$name/hugetlb.${MB}MB.$reservation_limit_file 145 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file" 153 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$reservation_usage_file" 161 local path="$cgroup_path/$cgroup/hugetlb.${MB}MB.$fault_usage_file" 183 local hugetlb_usage=$cgroup_path/$cgroup/hugetlb.${MB}MB.$fault_usage_file 184 local reserved_usage=$cgroup_path/$cgroup/hugetlb [all...] |
| H A D | .gitignore | 7 hugetlb-madvise 8 hugetlb-read-hwpoison 9 hugetlb-soft-offline
|
| H A D | run_vmtests.sh | 78 - hugetlb 134 # -t: thp=on, -T: thp=off, -H: hugetlb=on 169 # hugetlb test requires a minimum of 2 * nr_cpus huge pages. Take 241 if [ ${CATEGORY} == "thp" -o ${CATEGORY} == "hugetlb" ]; then 285 CATEGORY="hugetlb" run_test ./hugepage-mmap 291 CATEGORY="hugetlb" run_test ./hugepage-shm 295 CATEGORY="hugetlb" run_test ./map_hugetlb 296 CATEGORY="hugetlb" run_test ./hugepage-mremap 297 CATEGORY="hugetlb" run_test ./hugepage-vmemmap 298 CATEGORY="hugetlb" run_tes [all...] |
| H A D | Makefile | 63 TEST_GEN_FILES += hugetlb-madvise 64 TEST_GEN_FILES += hugetlb-read-hwpoison 65 TEST_GEN_FILES += hugetlb-soft-offline
|
| H A D | va_high_addr_switch.sh | 116 ./va_high_addr_switch --run-hugetlb
|
| H A D | hugetlb_reparenting_test.sh | 35 mount -t cgroup memory,hugetlb $CGROUP_ROOT
|
| H A D | uffd-common.c | 33 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 D | cow.c | 249 * 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 D | hugetlbfs_reserv.rst | 284 助函数,该函数调用这些低级函数中的一个。这些低级函数在源代码(mm/hugetlb.c)中得到了相当好的 416 * 当cpuset被配置时,它打破了严格的hugetlb页面预留,因为计数是在一个全局变量上完 421 * hugetlb映射的语义变化是不可取的。然而,为了预留一些语义,我们退回到检查当前空闲 432 最完整的hugetlb测试集在libhugetlbfs仓库。如果你修改了任何hugetlb相关的代码,请使用 433 libhugetlbfs测试套件来检查回归情况。此外,如果你添加了任何新的hugetlb功能,请在
|
| H A D | page_migration.rst | 209 页是一个非THP和非hugetlb页,那么这个计数器会增加1。如果该页面是一个THP或hugetlb 210 页面,那么这个计数器会随着THP或hugetlb子页面的数量而增加。例如,迁移一个有4KB大小 214 果是THP或hugetlb,这个计数将被子页的数量增加。
|
| /linux/mm/ |
| H A D | hugetlb_cgroup.c | 240 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 D | memory-failure.c | 1358 bool hugetlb = false; in __get_hwpoison_page() local 1360 ret = get_hwpoison_hugetlb_folio(folio, &hugetlb, false); in __get_hwpoison_page() 1361 if (hugetlb) { in __get_hwpoison_page() 1457 bool hugetlb = false; in __get_unpoison_page() local 1459 ret = get_hwpoison_hugetlb_folio(folio, &hugetlb, true); in __get_unpoison_page() 1460 if (hugetlb) { in __get_unpoison_page() 2035 static int try_memory_failure_hugetlb(unsigned long pfn, int flags, int *hugetlb) in try_memory_failure_hugetlb() argument 2043 *hugetlb = 1; in try_memory_failure_hugetlb() 2048 *hugetlb = 0; in try_memory_failure_hugetlb() 2110 static inline int try_memory_failure_hugetlb(unsigned long pfn, int flags, int *hugetlb) in try_memory_failure_hugetlb() argument [all …]
|
| H A D | debug.c | 53 DEF_PAGETYPE_NAME(hugetlb),
|
| H A D | hugetlb.c | 7138 int get_hwpoison_hugetlb_folio(struct folio *folio, bool *hugetlb, bool unpoison) in get_hwpoison_hugetlb_folio() argument 7142 *hugetlb = false; in get_hwpoison_hugetlb_folio() 7145 *hugetlb = true; in get_hwpoison_hugetlb_folio()
|
| /linux/include/linux/ |
| H A D | cgroup_subsys.h | 53 SUBSYS(hugetlb)
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-kernel-mm-hugepages | 3 Contact: Nishanth Aravamudan <nacc@us.ibm.com>, hugetlb maintainers
|
| /linux/Documentation/admin-guide/ |
| H A D | cgroup-v2.rst | 1783 hugetlb 1784 Amount of memory used by hugetlb pages. This metric only shows 1785 up if hugetlb usage is accounted for in memory.current (i.e. 2840 hugetlb.<hugepagesize>.current 2841 Show current usage for "hugepagesize" hugetlb. It exists for all 2844 hugetlb.<hugepagesize>.max 2845 Set/show the hard limit of "hugepagesize" hugetlb usage. 2848 hugetlb.<hugepagesize>.events 2854 hugetlb.<hugepagesize>.events.local 2855 Similar to hugetlb.<hugepagesize>.events but the fields in the file [all …]
|
| H A D | kernel-parameters.txt | 1236 APIs. In addition, this is the default hugetlb size 2118 Allows heavy hugetlb users to free up some more 2119 memory (7 * PAGE_SIZE for each 2MB hugetlb page).
|
| /linux/Documentation/ |
| H A D | .renames.txt | 130 cgroup-v1/hugetlb admin-guide/cgroup-v1/hugetlb
|
| /linux/Documentation/admin-guide/sysctl/ |
| H A D | vm.rst | 365 shared memory segment using hugetlb page.
|
| /linux/ |
| H A D | CREDITS | 2261 D: Maintenance and development of the hugetlb subsystem
|
| H A D | MAINTAINERS | 11895 F: include/linux/hugetlb.h 11897 F: mm/hugetlb.c
|