Open liuty10 opened 4 years ago
display CPU affinity of an running process: taskset -p [PID] or taskset -cp [PID]
taskset -p [PID]
taskset -cp [PID]
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.
task set -p 0x11 [PID]
Assign a range of CPUs while changing affinity taskset -cp 0,3 [PID]
taskset -cp 0,3 [PID]
Launch a process with predefined CPU affinity taskset 0xa edit
taskset 0xa edit
Reference Link
display CPU affinity of an running process:
taskset -p [PID]
ortaskset -cp [PID]
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.Assign a range of CPUs while changing affinity
taskset -cp 0,3 [PID]
Launch a process with predefined CPU affinity
taskset 0xa edit
Reference Link