Show Table of Contents
A.13. numactl
Numactl 允许管理员使用指定的调度或内存放置策略来运行进程。Numactl 也能为共享的内存段或文件设置永久策略,以及进程的处理器关联和内存关联。
Numactl 提供许多实用的选项。此附录概述一部分选项,也为用户提供了一些使用建议,但并不详细。
- --hardware
- 显示系统中的可用节点,且包含节点间的相对距离的详细目录。
- --membind
- 确保内存只由指定节点分配。如果指定地点没有足够的可用内存,分配会失败。
- --cpunodebind
- 确保指定命令及其子进程只在指定的节点上执行。
- --phycpubind
- 确保指定的命令及其子进程只在指定的处理器上执行。
- --localalloc
- 指明内存应当始终从本地节点分配。
- --preferred
- 指定分配内存的优选节点。如果内存不能从指定的节点分配,其他的节点将被用于回退。
有关以上内容和其他参数的细节,参见手册页:
$ man numactl

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.