6.8. Integrating virtual memory and storage

6.8.1. File mapping

We have seen files used for persistent storage, and main memory for the storage of running programs and data. The most common programming language abstraction for stored data is the file; files are named and used explicitly in programs.

We have seen in Section 6.5 that the filing system maintains a cache of buffers in main memory and that users' requests are satisfied from those buffers. This means that on a read, data is first written into the system buffers and then copied to the application. On a write, data is copied into system buffers, then written to disk. The efficiency of file input and output could be improved if this copying was avoided.

The integration of virtual memory ...

Get Operating Systems: Concurrent and Distributed Software Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.