migratepages(8) - Linux man page
Name
migratepages - Migrate the physical location a processes pagesSynopsis
migratepages pid from-nodes to-nodesDescription
If multiple nodes are specified for from-nodes or to-nodes then an attempt is made to preserve the relative location of each page in each nodeset.
For example if we move from nodes 2-5 to 7,9,12-13 then the preferred mode of operation is to move pages from 2->7, 3->9, 4->12 and 5->13. However, this is only posssible if enough memory is available.
- Valid node specifiers
-
all All nodes number Node number number1{,number2} Node number1 and Node number2 number1-number2 Nodes from number1 to number2 ! nodes Invert selection of the following specification.
Notes
Requires an NUMA policy aware kernel with support for page migration (linux 2.6.16 and later).migratepages will only move pages that are not shared with other processes if called by a user without administrative priviledges (but with the right to modify the process).
migratepages will move all pages if invoked from root (or a user with administrative priviledges).