Lines Matching refs:hpage_pmd_nr
29 static int hpage_pmd_nr; variable
970 int max_ptes_none = hpage_pmd_nr / 2; in collapse_max_ptes_none()
986 ops->fault(p, 0, (hpage_pmd_nr - max_ptes_none - 1) * page_size); in collapse_max_ptes_none()
989 validate_memory(p, 0, (hpage_pmd_nr - max_ptes_none - 1) * page_size); in collapse_max_ptes_none()
992 ops->fault(p, 0, (hpage_pmd_nr - max_ptes_none) * page_size); in collapse_max_ptes_none()
996 (hpage_pmd_nr - max_ptes_none) * page_size); in collapse_max_ptes_none()
1037 printf("Swapout %d of %d pages...", max_ptes_swap + 1, hpage_pmd_nr); in collapse_max_ptes_swap()
1056 hpage_pmd_nr); in collapse_max_ptes_swap()
1129 for (i = 0; i < hpage_pmd_nr; i++) { in collapse_compound_extreme()
1131 i + 1, hpage_pmd_nr); in collapse_compound_extreme()
1248 write_num("khugepaged/max_ptes_shared", hpage_pmd_nr - 1); in collapse_fork_compound()
1290 hpage_pmd_nr - max_ptes_shared - 1, hpage_pmd_nr); in collapse_max_ptes_shared()
1291 ops->fault(p, 0, (hpage_pmd_nr - max_ptes_shared - 1) * page_size); in collapse_max_ptes_shared()
1302 hpage_pmd_nr - max_ptes_shared, hpage_pmd_nr); in collapse_max_ptes_shared()
1303 ops->fault(p, 0, (hpage_pmd_nr - max_ptes_shared) * in collapse_max_ptes_shared()
1474 hpage_pmd_nr = hpage_pmd_size / page_size; in main()
1476 default_settings.khugepaged.max_ptes_none = hpage_pmd_nr - 1; in main()
1477 default_settings.khugepaged.max_ptes_swap = hpage_pmd_nr / 8; in main()
1478 default_settings.khugepaged.max_ptes_shared = hpage_pmd_nr / 2; in main()
1479 default_settings.khugepaged.pages_to_scan = hpage_pmd_nr * 8; in main()