I'm using shared memory mapped with mmap to transfer quite large blocks between 3 processes, which works exactly as I want it to on Win(with different API, obviusly), however I'm having significant problem on Mac - after munmap() and shm_unlink() regardless of my attempts to avoid that os writes huge chunks on HDD and thus does not deallocate them immediatelly. So it works terribly slow instead of instant deallocation and it's possible to run out of 32 bit memory when transfering few chunks in a row.
Is it possible to simply drop shared memory allocated with mmap?