Linux command
migratepages 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Migrate pages from one node to another
migratepages [pid] [from_node] [to_node]
Migrate all pages to specific node
migratepages [pid] all [2]
Migrate to closest node
migratepages [pid] [0] best
说明
migratepages moves the physical memory pages of a process from one set of NUMA nodes to another. This is useful for optimizing memory placement on NUMA systems. The command works on a running process and can migrate pages to improve memory locality.
参数
- pid
- Process ID.
- from-nodes
- Source NUMA nodes (or 'all').
- to-nodes
- Destination NUMA nodes (or 'best').
FAQ
What is the migratepages command used for?
migratepages moves the physical memory pages of a process from one set of NUMA nodes to another. This is useful for optimizing memory placement on NUMA systems. The command works on a running process and can migrate pages to improve memory locality.
How do I run a basic migratepages example?
Run `migratepages [pid] [from_node] [to_node]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does pid do in migratepages?
Process ID.