如何在进程启动之前设置进程使用的物理CPU数量(CPU关联性)。
您可以使用taskset执行此操作 :
taskset 0x03 your_command
将在cpus#0和#1上启动your_command 。
your_command