Home
last modified time | relevance | path

Searched refs:num_pages (Results 1 – 5 of 5) sorted by relevance

/system/extras/tests/pagingtest/
Dthrashing_test.c22 long num_pages; in thrashing_test() local
27 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()
/system/extras/pagecache/
Dpagecache.py54 def pages_to_mb(self, num_pages): argument
55 return "%.2f" % round(num_pages * PAGE_SIZE / 1024.0 / 1024.0, 2)
60 def print_pages_and_mb(self, num_pages): argument
61 pages_string = str(num_pages) + ' (' + str(self.pages_to_mb(num_pages)) + ' MB)'
/system/core/init/
Dservice.cpp591 long num_pages = sysconf(_SC_PHYS_PAGES); in Start() local
592 if (page_size > 0 && num_pages > 0) { in Start()
594 if (size_t(num_pages) < SIZE_MAX / size_t(page_size)) { in Start()
595 max_mem = size_t(num_pages) * size_t(page_size); in Start()
/system/memory/libmeminfo/
Dprocmeminfo.cpp378 size_t num_pages = (vma.end - vma.start) / pagesz; in ReadVmaStats() local
384 size_t num_leftover_pages = num_pages; in ReadVmaStats()
385 for (size_t cur_page = first_page; cur_page < first_page + num_pages; ++cur_page) { in ReadVmaStats()
/system/core/trusty/libtrusty/tipc-test/
Dtipc_test.c900 const size_t num_pages = 10; in send_fd_test() local
916 size_t buf_size = PAGE_SIZE * num_pages; in send_fd_test()
949 for (size_t skip = 0; skip < num_pages; skip++) { in send_fd_test()