Searched refs:mem_total (Results 1 – 5 of 5) sorted by relevance
/third_party/ltp/testcases/kernel/mem/mtest06/ |
D | mmap1.c | 187 size_t mem_total; in setup() local 190 mem_total = SAFE_READ_MEMINFO("MemTotal:"); in setup() 191 mem_total *= 1024; in setup() 196 distant_mmap_size = (mem_total > 4 * GIGABYTE) ? 2 * GIGABYTE : mem_total / 2; in setup()
|
/third_party/ltp/testcases/kernel/mem/tunable/ |
D | overcommit_memory.c | 89 long mem_total, swap_total; in setup() local 99 mem_total = SAFE_READ_MEMINFO("MemTotal:"); in setup() 100 tst_res(TINFO, "MemTotal is %ld kB", mem_total); in setup() 103 sum_total = mem_total + swap_total; in setup()
|
/third_party/ltp/libs/libltpnuma/ |
D | tst_numa.c | 130 long mem_total = -1; in node_has_enough_memory() local 153 mem_total = val; in node_has_enough_memory() 164 if (mem_total == -1 || mem_used == -1) { in node_has_enough_memory() 169 mem_avail = mem_total - mem_used + (9 * file_pages)/10; in node_has_enough_memory()
|
/third_party/node/deps/uv/src/unix/ |
D | aix.c | 368 perfstat_memory_total_t mem_total; in uv_get_free_memory() local 369 int result = perfstat_memory_total(NULL, &mem_total, sizeof(mem_total), 1); in uv_get_free_memory() 373 return mem_total.real_free * 4096; in uv_get_free_memory() 378 perfstat_memory_total_t mem_total; in uv_get_total_memory() local 379 int result = perfstat_memory_total(NULL, &mem_total, sizeof(mem_total), 1); in uv_get_total_memory() 383 return mem_total.real_total * 4096; in uv_get_total_memory()
|
/third_party/libuv/src/unix/ |
D | aix.c | 368 perfstat_memory_total_t mem_total; in uv_get_free_memory() local 369 int result = perfstat_memory_total(NULL, &mem_total, sizeof(mem_total), 1); in uv_get_free_memory() 373 return mem_total.real_free * 4096; in uv_get_free_memory() 378 perfstat_memory_total_t mem_total; in uv_get_total_memory() local 379 int result = perfstat_memory_total(NULL, &mem_total, sizeof(mem_total), 1); in uv_get_total_memory() 383 return mem_total.real_total * 4096; in uv_get_total_memory()
|