View CPU Affinity

$ taskset -cp 29523
pid 29523's current affinity list: 0-15

That mean process with PID 29523 is active on CPU range from [0,1,...,15] which means 16 total. PID: Process Identifier - is a unique numerical identifier given to each running process, you can view PID of processes in top or htop tools If you run the above command but get the message bad usage, try with PID = 1

$ taskset -cp 1
Comments