Searched refs:max_ptes_swap (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.15/tools/testing/selftests/vm/ |
D | khugepaged.c | 80 unsigned int max_ptes_swap; member 277 write_num("khugepaged/max_ptes_swap", khugepaged->max_ptes_swap); in write_settings() 313 .max_ptes_swap = read_num("khugepaged/max_ptes_swap"), in save_settings() 641 int max_ptes_swap = read_num("khugepaged/max_ptes_swap"); in collapse_max_ptes_swap() local 647 printf("Swapout %d of %d pages...", max_ptes_swap + 1, hpage_pmd_nr); in collapse_max_ptes_swap() 648 if (madvise(p, (max_ptes_swap + 1) * page_size, MADV_PAGEOUT)) { in collapse_max_ptes_swap() 652 if (check_swap(p, (max_ptes_swap + 1) * page_size)) { in collapse_max_ptes_swap() 668 printf("Swapout %d of %d pages...", max_ptes_swap, hpage_pmd_nr); in collapse_max_ptes_swap() 669 if (madvise(p, max_ptes_swap * page_size, MADV_PAGEOUT)) { in collapse_max_ptes_swap() 673 if (check_swap(p, max_ptes_swap * page_size)) { in collapse_max_ptes_swap() [all …]
|
/Linux-v5.15/mm/ |
D | khugepaged.c | 286 unsigned long max_ptes_swap; in khugepaged_max_ptes_swap_store() local 288 err = kstrtoul(buf, 10, &max_ptes_swap); in khugepaged_max_ptes_swap_store() 289 if (err || max_ptes_swap > HPAGE_PMD_NR-1) in khugepaged_max_ptes_swap_store() 292 khugepaged_max_ptes_swap = max_ptes_swap; in khugepaged_max_ptes_swap_store() 298 __ATTR(max_ptes_swap, 0644, khugepaged_max_ptes_swap_show,
|
/Linux-v5.15/Documentation/admin-guide/mm/ |
D | transhuge.rst | 213 ``max_ptes_swap`` specifies how many pages can be brought in from 216 /sys/kernel/mm/transparent_hugepage/khugepaged/max_ptes_swap
|