2.6 swapping behavior
Posted May 6, 2004 18:21 UTC (Thu) by
corbet (editor, #1)
In reply to:
2.6 swapping behavior by xorbe
Parent article:
2.6 swapping behavior
"You mark the app's pages inaccessible. When the app touches it, the OS notes that the app really does have permissions, changes, and resumes the app. Pages that are never touched after a while can be dropped to swap.
That sounds vaguely like what the 2.4 VM did. It works, but you have to mess around with a lot of page table entries, keep track of which pages you have invalidated (in affected process's page tables), and know when to get around to cleaning them up.
To an extent, things are pretty much still done that way, actually; pages are pulled from pages tables and put into the inactive list. Eventually they find their way to swap. If some process wants them in the mean time, they are soft-faulted back in.
(
Log in to post comments)