Lines Matching refs:to
9 The main intend of page migration is to reduce the latency of memory access
10 by moving pages near to the processor where the process accessing that memory
13 Page migration allows a process to manually relocate the node on which its
18 process that are located on the from nodes to the destination nodes.
22 which provides an interface similar to other numa functionality for page
28 a process to a processor on a distant node. A batch scheduler or an
30 nearer to the new processor. The kernel itself does only provide
35 accesses and may use the result to move pages to more advantageous
39 sections of nodes. Paul Jackson has equipped cpusets with the ability to
40 move pages when a task is moved to another cpuset (See
42 Cpusets allows the automation of process locality. If a task is moved to
51 process. This is necessary in order to preserve the memory latencies.
55 description for those trying to use migrate_pages() from the kernel
64 Lists of pages to be migrated are generated by scanning over
67 Calling isolate_lru_page increases the references to the page
69 It also prevents the swapper or other scans to encounter
72 2. We need to have a function of type new_page_t that can be
73 passed to migrate_pages(). This function should figure out
74 how to allocate the correct new page given the old page.
77 to do the migration. It will call the function to allocate
85 if all references to a page are removable at the time. The page has
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
98 4. All the page table references to the page are converted to migration
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.
109 7. The radix tree is checked and if it does not contain the pointer to this
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.
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
142 20. The new page is moved to the LRU and can be scanned by the swapper