Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-29 00:18:23 +00:00
parent a3692d638b
commit 75f807d6af
175 changed files with 1107 additions and 775 deletions

View File

@@ -10,20 +10,20 @@ source: https://github.com/tldr-pages/tldr.git
- Get a running process' CPU affinity by PID:
`taskset --pid --cpu-list {{pid}}`
`taskset {{[-p|--pid]}} {{[-c|--cpu-list]}} {{pid}}`
- Set a running process' CPU affinity by PID:
`taskset --pid --cpu-list {{cpu_id}} {{pid}}`
`taskset {{[-p|--pid]}} {{[-c|--cpu-list]}} {{cpu_id}} {{pid}}`
- Start a new process with affinity for a single CPU:
`taskset --cpu-list {{cpu_id}} {{command}}`
`taskset {{[-c|--cpu-list]}} {{cpu_id}} {{command}}`
- Start a new process with affinity for multiple non-sequential CPUs:
`taskset --cpu-list {{cpu_id_1}},{{cpu_id_2}},{{cpu_id_3}}`
`taskset {{[-c|--cpu-list]}} {{cpu_id_1}},{{cpu_id_2}},{{cpu_id_3}}`
- Start a new process with affinity for CPUs 1 through 4:
`taskset --cpu-list {{cpu_id_1}}-{{cpu_id_4}}`
`taskset {{[-c|--cpu-list]}} {{cpu_id_1}}-{{cpu_id_4}}`