Home
last modified time | relevance | path

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

/external/fio/
Dmemory.c64 static int alloc_mem_shm(struct thread_data *td, unsigned int total_mem) in alloc_mem_shm() argument
73 total_mem = (total_mem + mask) & ~mask; in alloc_mem_shm()
76 td->shm_id = shmget(IPC_PRIVATE, total_mem, flags); in alloc_mem_shm()
77 dprint(FD_MEM, "shmget %u, %d\n", total_mem, td->shm_id); in alloc_mem_shm()
125 static int alloc_mem_mmap(struct thread_data *td, size_t total_mem) in alloc_mem_mmap() argument
137 total_mem = (total_mem + mask) & ~mask; in alloc_mem_mmap()
149 ftruncate(td->mmapfd, total_mem) < 0) { in alloc_mem_mmap()
161 td->orig_buffer = mmap(NULL, total_mem, PROT_READ | PROT_WRITE, flags, in alloc_mem_mmap()
163 dprint(FD_MEM, "mmap %llu/%d %p\n", (unsigned long long) total_mem, in alloc_mem_mmap()
180 static void free_mem_mmap(struct thread_data *td, size_t total_mem) in free_mem_mmap() argument
[all …]
/external/webp/src/utils/
Dutils.c67 static size_t total_mem = 0; variable
79 fprintf(stderr, "total_mem: %u\n", (uint32_t)total_mem); in PrintMemInfo()
123 total_mem += size; in AddMem()
128 num_malloc_calls + num_calloc_calls, (uint32_t)total_mem); in AddMem()
130 fprintf(stderr, "Mem: %u (+%u)\n", (uint32_t)total_mem, (uint32_t)size); in AddMem()
133 if (total_mem > high_water_mark) high_water_mark = total_mem; in AddMem()
149 total_mem -= block->size_; in SubMem()
152 (uint32_t)total_mem, (uint32_t)block->size_); in SubMem()
177 if (mem_limit > 0 && total_mem + total_size >= mem_limit) { in CheckSizeArgumentsOverflow()
/external/autotest/client/virt/
Dvirt_scheduler.py11 def __init__(self, tests, num_workers, total_cpus, total_mem, bindir): argument
24 self.total_mem = total_mem
178 if um and um + test_used_mem > self.total_mem:
191 if um and um + test_used_mem > self.total_mem:
/external/autotest/client/tests/kvm/
Dcontrol.parallel184 # total_mem defaults to 3/4 of the total memory reported by 'free'
185 total_mem = int(commands.getoutput("free -m").splitlines()[1].split()[1]) * 3/4
190 s = virt_scheduler.scheduler(tests, num_workers, total_cpus, total_mem, pwd)
/external/squashfs-tools/squashfs-tools/
Dmksquashfs.c330 void check_usable_phys_mem(int total_mem);
4259 int total_mem = readq; in initialise_threads() local
4275 if(add_overflow(total_mem, fragq)) in initialise_threads()
4277 total_mem += fragq; in initialise_threads()
4278 if(add_overflow(total_mem, bwriteq)) in initialise_threads()
4280 total_mem += bwriteq; in initialise_threads()
4281 if(add_overflow(total_mem, fwriteq)) in initialise_threads()
4283 total_mem += fwriteq; in initialise_threads()
4285 check_usable_phys_mem(total_mem); in initialise_threads()
5151 void check_usable_phys_mem(int total_mem) in check_usable_phys_mem() argument
[all …]