taskset.


$taskset -p 1578
pid 1578's current affinity mask: 1
$

taskset is used to  retrive or set the processor affinity
mask of either an  existing process,given it's PID, or to
run  a  new  process,  given  it's  command  name,with  a
specified  affinity mask. The  Linux scheduler  will then
honor the  given affinity mask,ensuring  that the process
in question runs only on allowed processors.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: