NAME
setaffinity - Manipulate affinities from command line
SYNOPSIS
Typical usage:
$ setaffinity 675 676 679 1011
Options synopsis:
$ setaffinity @pids affinity_mask
DESCRIPTION
setaffinity expects list of pids with mask to be applied to them all coming last. Mask must be a string consisting of 0 and 1. CPU0 comes rightmost, here are two examples:
0101 - CPU0 + CPU2
1000 - CPU3 only
Mask is applied to all specified process, if anything fails, process is not aborted, but error description + pid are printed to STDERR.
Note that you can change affinity only of processes you own, only root can change others.
SEE ALSO
man 2 cpuset_getaffinity
man 2 cpuset
AUTHOR
Sergey Aleynikov <sergey.aleynikov@gmail.com>