【发布时间】:2011-12-07 06:42:23
【问题描述】:
我正在使用start /AFFINITY [n] [.exe] 命令启动具有指定关联性的可执行文件。我有一个有 8 个处理器(1、2、3、4、5、6、7、8)的系统。我想将进程设置为使用所有奇数处理器(1、3、5、7)。我无法弄清楚如何做到这一点,并想知道是否可以使用 start 命令。如果没有,是否有替代的 命令行 方法?
启动命令的帮助并不是特别有用:
AFFINITY Specifies the processor affinity mask as a hexadecimal number.
The process is restricted to running on these processors.
The affinity mask is interpreted differently when /AFFINITY and
/NODE are combined. Specify the affinity mask as if the NUMA
node's processor mask is right shifted to begin at bit zero.
The process is restricted to running on those processors in
common between the specified affinity mask and the NUMA node.
If no processors are in common, the process is restricted to
running on the specified NUMA node.
【问题讨论】:
标签: windows-7 command-line affinity