From b205ef3b38e93beba0df681d61ea03e1218df679 Mon Sep 17 00:00:00 2001 From: dathide <47128084+dathide@users.noreply.github.com> Date: Wed, 15 Dec 2021 19:45:58 -0700 Subject: [PATCH] Fix syntax (#7543) Fix the syntax for running on non-sequential CPUs, which is done with commas. Also fix the syntax for running on sequential CPUs, which uses a "-". --- pages/linux/taskset.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/linux/taskset.md b/pages/linux/taskset.md index a21b3a5abb..54e7b6a4a5 100644 --- a/pages/linux/taskset.md +++ b/pages/linux/taskset.md @@ -16,8 +16,8 @@ - Start a new process with affinity for multiple non-sequential CPUs: -`taskset --cpu-list {{cpu_id_1}} {{cpu_id_2}} {{cpu_id_3}}` +`taskset --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 --cpu-list {{cpu_id_1}}-{{cpu_id_4}}`