Which Kind of Page to Swap

Swapping applies only to the following kinds of pages:

• Pages that belong to an anonymous memory region of a process (for instance, a User Mode stack)

• Modified pages that belong to a private memory mapping of a process

• Pages that belong to an IPC shared memory region (see Section 19.3.5)

The remaining kinds of pages are either used by the kernel or used to map files on disk. In the first case, they are ignored by swapping because this simplifies the kernel design; in the second case, the best swap areas for the pages are the files themselves.

Continue reading here: How to Distribute Pages in the Swap Areas

Was this article helpful?

0 0