Lines Matching refs:NUM_PAGES
46 #define NUM_PAGES 4 macro
149 map = mmap(NULL, size*NUM_PAGES, PROT_READ|PROT_WRITE, in test_mmap()
153 memset(map, 0xff, size*NUM_PAGES); in test_mmap()
157 assert(size == getpagesize() || (before - after) == NUM_PAGES); in test_mmap()
170 id = shmget(IPC_PRIVATE, size * NUM_PAGES, IPC_CREAT|0600|flags); in test_shmget()
184 memset(map, 0xff, size*NUM_PAGES); in test_shmget()
189 assert(size == getpagesize() || (before - after) == NUM_PAGES); in test_shmget()
204 if (read_free(page_sizes[i]) < NUM_PAGES) { in sanity_checks()
207 NUM_PAGES); in sanity_checks()
212 if (read_sysfs(0, "/proc/sys/kernel/shmmax") < NUM_PAGES * largest) { in sanity_checks()
213 printf("Please do echo %lu > /proc/sys/kernel/shmmax", largest * NUM_PAGES); in sanity_checks()
220 "Please boot with hugepagesz=1G hugepages=%d\n", NUM_PAGES); in sanity_checks()