Lines Matching refs:lockmem
18 dprint(FD_MEM, "unpinning %llu bytes\n", td->o.lockmem); in fio_unpin_memory()
19 if (munlock(td->pinned_mem, td->o.lockmem) < 0) in fio_unpin_memory()
21 munmap(td->pinned_mem, td->o.lockmem); in fio_unpin_memory()
30 if (!td->o.lockmem) in fio_pin_memory()
33 dprint(FD_MEM, "pinning %llu bytes\n", td->o.lockmem); in fio_pin_memory()
40 if ((td->o.lockmem + 128 * 1024 * 1024) > phys_mem) { in fio_pin_memory()
41 td->o.lockmem = phys_mem - 128 * 1024 * 1024; in fio_pin_memory()
43 td->o.lockmem >> 20); in fio_pin_memory()
47 td->pinned_mem = mmap(NULL, td->o.lockmem, PROT_READ | PROT_WRITE, in fio_pin_memory()
54 if (mlock(td->pinned_mem, td->o.lockmem) < 0) { in fio_pin_memory()
56 munmap(td->pinned_mem, td->o.lockmem); in fio_pin_memory()