runaffinity - Runs given command with affinity set
Typical usage:
$ runaffinity 0100 gzip -7 /some/large/file
Options synopsis:
$ runaffinity affinity_mask command_and_args
Runs supplied command with affinity applied. Mask must be a string consisting of 0 and 1. CPU0 comes rightmost, here are two examples:
0101 - CPU0 + CPU2 1000 - CPU3 only
man 2 cpuset_getaffinity
man 2 cpuset
Sergey Aleynikov <sergey.aleynikov@gmail.com>
To install BSD::Process::Affinity, copy and paste the appropriate command in to your terminal.
cpanm
cpanm BSD::Process::Affinity
CPAN shell
perl -MCPAN -e shell install BSD::Process::Affinity
For more information on module installation, please visit the detailed CPAN module installation guide.