Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a process, PID 7150.

I want to assign the process to core #4 of my system. (Core numbering starts with zero, so the fourth core should be core #3)

I know I can do this by using Taskset. However, whenever I try, I get the following:

steve@rosie:~$ taskset -p 7150
pid 7150's current affinity mask: f
steve@rosie:~$ taskset -c 3 -p 7150
execvp: No such file or directory
failed to execute -p

What am I doing wrong?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

The proper format for the command is:

taskset -pc 3 7150
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.