On Thu, Dec 16, 2010 at 2:57 PM, Joel Reymont <joelr1@REDACTED> wrote: > > On Dec 16, 2010, at 11:55 AM, Max Lapshin wrote: > >> Maybe syscall mremap will help you to enlarge mmaped file? > > I'll look into it. There's no mremap on Mac OSX, though. > So, mmap + munmap (exactly this sequence not to loose memory).