CS-FreeStyle / 10000-How-To-Do-in-CS

1 stars 0 forks source link

how to use taskset #72

Open liuty10 opened 4 years ago

liuty10 commented 4 years ago
  1. display CPU affinity of an running process: taskset -p [PID] or taskset -cp [PID]

  2. Change the affinity to 0x11, use the following command: task set -p 0x11 [PID] and then, you can check the affinity using commands in step 1.

  3. Assign a range of CPUs while changing affinity taskset -cp 0,3 [PID]

  4. Launch a process with predefined CPU affinity taskset 0xa edit

Reference Link