Searched refs:mem_available (Results 1 – 5 of 5) sorted by relevance
43 uint64_t mem_available = 0L; in GetMemoryUsage() local63 mem_available = atol(line.substr(pos2, pos1 - pos2).c_str()); in GetMemoryUsage()76 if (status_count != 2 || mem_total == 0 || mem_available > mem_total) { in GetMemoryUsage()81 …return (1.0 - static_cast<float>(static_cast<double>(mem_available) / static_cast<double>(mem_tota… in GetMemoryUsage()
87 unsigned long long mem_available = 0; in tst_available_mem() local90 &mem_available)) { in tst_available_mem()91 mem_available = SAFE_READ_MEMINFO("MemFree:") in tst_available_mem()95 return mem_available; in tst_available_mem()
307 int64_t mem_available; in os_get_available_system_memory()308 size_t len = sizeof(mem_available); in os_get_available_system_memory()311 if (sysctl(mib, 2, &mem_available, &len, NULL, 0) == -1) in os_get_available_system_memory()318 *size = MIN2(mem_available, rl.rlim_cur); in os_get_available_system_memory()
416 size_t mem_available; in mem_read() local424 mem_available = (context->hidden.mem.stop - context->hidden.mem.here); in mem_read()425 if (total_bytes > mem_available) { in mem_read()426 total_bytes = mem_available; in mem_read()
2587 uint64_t mem_available = 0; in anv_get_memory_budget() local2591 mem_available = device->vram.available; in anv_get_memory_budget()2594 mem_available = device->sys.available; in anv_get_memory_budget()2598 VkDeviceSize available_prop = mem_available * heap_proportion; in anv_get_memory_budget()