Searched refs:num_pages (Results 1 – 4 of 4) sorted by relevance
22 long num_pages; in thrashing_test() local27 num_pages = sysconf(_SC_PHYS_PAGES); in thrashing_test()29 if (num_pages < 0) { in thrashing_test()34 filesize = num_pages * pagesize / (ARRAY_SIZE(fds) - 1); in thrashing_test()
282 uint64_t num_pages = (vma.end - vma.start) / pagesz; in ReadVmaStats() local284 std::unique_ptr<uint64_t[]> pg_frames(new uint64_t[num_pages]); in ReadVmaStats()286 if (pread64(pagemap_fd, pg_frames.get(), num_pages * sizeof(uint64_t), in ReadVmaStats()299 std::unique_ptr<uint64_t[]> pg_flags(new uint64_t[num_pages]); in ReadVmaStats()300 std::unique_ptr<uint64_t[]> pg_counts(new uint64_t[num_pages]); in ReadVmaStats()301 for (uint64_t i = 0; i < num_pages; ++i) { in ReadVmaStats()
54 def pages_to_mb(self, num_pages): argument55 return "%.2f" % round(num_pages * PAGE_SIZE / 1024.0 / 1024.0, 2)60 def print_pages_and_mb(self, num_pages): argument61 pages_string = str(num_pages) + ' (' + str(self.pages_to_mb(num_pages)) + ' MB)'
1105 long num_pages = sysconf(_SC_PHYS_PAGES); in Start() local1106 if (page_size > 0 && num_pages > 0) { in Start()1108 if (size_t(num_pages) < SIZE_MAX / size_t(page_size)) { in Start()1109 max_mem = size_t(num_pages) * size_t(page_size); in Start()