Lines Matching refs:page
9 The main intend of page migration is to reduce the latency of memory access
22 which provides an interface similar to other numa functionality for page
25 proc(5) man page.
31 manual page migration support. Automatic page migration may be implemented
67 Calling isolate_lru_page increases the references to the page
68 so that it cannot vanish while the page migration occurs.
70 the page.
74 how to allocate the correct new page given the old page.
78 the new page for each page that is considered for
84 migrate_pages() does several passes over its list of pages. A page is moved
85 if all references to a page are removable at the time. The page has
87 is increased so that the page cannot be freed while page migration occurs.
91 1. Lock the page to be migrated
95 3. Lock the new page that we want to move to. It is locked so that accesses to
96 this (not yet uptodate) page immediately lock while the move is in progress.
98 4. All the page table references to the page are converted to migration
99 entries. This decreases the mapcount of a page. If the resulting
100 mapcount is not zero then we do not migrate the page. All user space
101 processes that attempt to access the page will now wait on the page lock.
104 to access the page via the mapping to block on the radix tree spinlock.
106 6. The refcount of the page is examined and we back out if references remain
107 otherwise we know that we are the only one referencing this page.
110 page then we back out because someone else modified the radix tree.
112 8. The new page is prepped with some settings from the old page so that
113 accesses to the new page will discover a page with the correct settings.
115 9. The radix tree is changed to point to the new page.
117 10. The reference count of the old page is dropped because the radix tree
118 reference is gone. A reference to the new page is established because
119 the new page is referenced to by the radix tree.
123 to sleeping on the locked new page.
125 12. The page contents are copied to the new page.
127 13. The remaining page flags are copied to the new page.
129 14. The old page flags are cleared to indicate that the page does
132 15. Queued up writeback on the new page is triggered.
134 16. If migration entries were page then replace them with real ptes. Doing
136 the page lock.
138 19. The page locks are dropped from the old and new page.
139 Processes waiting on the page lock will redo their page faults
140 and will reach the new page.
142 20. The new page is moved to the LRU and can be scanned by the swapper