mmap() may introduce delays; a first attempt to work around them