Searched refs:hugepagesize (Results 1 – 3 of 3) sorted by relevance
89 static int hugepagesize; /* in Bytes */ variable154 shmid = shmget(key, (long)(length / 2 * hugepagesize), in overcommit()164 addr = mmap(ADDR, (long)(length / 2 * hugepagesize), PROTECTION, in overcommit()245 munmap(addr, (long)(length / 2 * hugepagesize)); in overcommit()320 if (atol(shmmax) < (long)(length / 2 * hugepagesize)) { in setup()326 (long)(length / 2 * hugepagesize)); in setup()392 for (i = 0; i < (long)(length / 2 * hugepagesize); i++) in write_bytes()401 for (i = 0; i < (long)(length / 2 * hugepagesize); i++) { in read_bytes()481 hugepagesize = atoi(buf) * 1024; in init_hugepagesize()496 hugepagesize / 1024); in init_sys_sz_paths()
406 int64 hugepagesize = FindHugePages() * 2 * kMegabyte; in FindFreeMemSize() local421 if (hugepagesize > 0) { in FindFreeMemSize()425 minsize = hugepagesize; in FindFreeMemSize()449 if (hugepagesize > 0) { in FindFreeMemSize()450 if (hugepagesize < minsize) { in FindFreeMemSize()453 hugepagesize / kMegabyte, in FindFreeMemSize()459 size = hugepagesize; in FindFreeMemSize()470 hugepagesize / kMegabyte, in FindFreeMemSize()506 int64 hugepagesize = FindHugePages() * 2 * kMegabyte; in AllocateTestMem() local514 } else if (hugepagesize >= length) { in AllocateTestMem()
25 int read_memory_info(unsigned long *memfree, unsigned long *hugepagesize) in read_memory_info() argument48 *hugepagesize = atoll(buffer); in read_memory_info()