Forrest logo
back to context overview

taskset

List of commands for taskset:

  • taskset:tldr:3a9de taskset: Start a new process with affinity for a single CPU.
    $ taskset --cpu-list ${cpu_id} ${command}
    try on your machine
    explain this command
  • taskset:tldr:4cb0e taskset: Get a running process' CPU affinity by PID.
    $ taskset --pid --cpu-list ${pid}
    try on your machine
    explain this command
  • taskset:tldr:b2078 taskset: Set a running process' CPU affinity by PID.
    $ taskset --pid --cpu-list ${cpu_id} ${pid}
    try on your machine
    explain this command
  • taskset:tldr:bfcef taskset: Start a new process with affinity for CPUs 1 through 4.
    $ taskset --cpu-list ${cpu_id_1}-${cpu_id_4}
    try on your machine
    explain this command
  • taskset:tldr:db8b0 taskset: Start a new process with affinity for multiple non-sequential CPUs.
    $ taskset --cpu-list ${cpu_id_1},${cpu_id_2},${cpu_id_3}
    try on your machine
    explain this command
back to context overview