Home
last modified time | relevance | path

Searched refs:hugepage_size (Results 1 – 2 of 2) sorted by relevance

/external/ltp/testcases/kernel/mem/thp/
Dthp03.c45 static long hugepage_size; variable
60 if (madvise(p + hugepage_size, page_size, MADV_MERGEABLE) == -1) { in thp_test()
87 hugepage_size = SAFE_READ_MEMINFO("Hugepagesize:") * KB; in setup()
88 unaligned_size = hugepage_size * 4 - 1; in setup()
/external/linux-kselftest/tools/testing/selftests/vm/
Dcompaction_test.c83 int check_compaction(unsigned long mem_free, unsigned int hugepage_size) in check_compaction() argument
129 compaction_index = mem_free/(atoi(nr_hugepages) * hugepage_size); in check_compaction()
167 unsigned long hugepage_size = 0; in main() local
188 if (read_memory_info(&mem_free, &hugepage_size) != 0) { in main()
226 if (check_compaction(mem_free, hugepage_size) == 0) in main()