Lably
Skip to content

Memory-mapped file

Virtual memory region with bytes mapped to a file or file-like resource

  • 8 min read
  • 6 chapters

Related on Lably

Through Operating system, Microsoft Windows and Process (computing)

History

TOPS-20 PMAP

An early (c. 1969) implementation of this was the PMAP system call on the DEC-20's TOPS-20 operating system, a feature used by Software House's System-1022 database system.

SunOS 4 mmap

SunOS 4 introduced Unix's mmap, which permitted programs "to map files into memory."

Windows Growable Memory-Mapped Files (GMMF)

Two decades after the release of TOPS-20's PMAP, Windows NT was given Growable Memory-Mapped Files (GMMF).

Since "CreateFileMapping function requires a size to be passed to it" and altering a file's size is not readily accommodated, a GMMF API was developed. Use of GMMF requires declaring the maximum to which the file size can grow, but no unused space is wasted.

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Computing and communication