我正在使用该start /AFFINITY [n] [.exe]
命令启动具有指定亲和力的可执行文件。我有一个有 8 个处理器(1、2、3、4、5、6、7、8)的系统。我想将进程设置为使用所有奇数处理器(1、3、5、7)。我无法弄清楚如何做到这一点,并想知道是否可以使用 start 命令。如果没有,是否有替代的命令行方式来做到这一点?
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.