Searched refs:hugepage_size (Results 1 – 2 of 2) sorted by relevance
45 static long hugepage_size; variable60 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()
83 int check_compaction(unsigned long mem_free, unsigned int hugepage_size) in check_compaction() argument129 compaction_index = mem_free/(atoi(nr_hugepages) * hugepage_size); in check_compaction()167 unsigned long hugepage_size = 0; in main() local188 if (read_memory_info(&mem_free, &hugepage_size) != 0) { in main()226 if (check_compaction(mem_free, hugepage_size) == 0) in main()