Set CPU affinity
medium risk
Bind processes to CPUs. See the flags and examples below, and run `man taskset` for the full reference.
taskset -cp 0-3 1234Pin PID to CPUs 0-3 · explain & risk-check →Reference text is hand-written and may be incomplete — check man taskset for your version. Test destructive commands on a non-production system first.