Re: Why don't shared anonymous mappings work?

Eric W. Biederman
1999-01-06T04:37:06Z

Take a page map it into two processes.
Swap the page out from both processes to disk.
The swap address is now in the pte's.
Bring that page into process 1.
Dirty the page, thus causing a new swap entry to be allocated.
( The write once rule)
Swap the page out of process 1.

Oops process 1 and process 2 have different pte's for the same
page.

Since we don't have any form of reverse page table entry
preventing that last case is difficult to do effciently.

Eric