From: Alison Chaiken Date: Sun, 25 Dec 2022 17:37:02 +0000 (-0800) Subject: schedutils: better illustrate the usage of cpu-lists with taskset X-Git-Tag: v2.39-rc1~179^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6667d2b30fb15834526f9ce1b101ab6339dbb4e1;p=thirdparty%2Futil-linux.git schedutils: better illustrate the usage of cpu-lists with taskset Provide a few examples of how to use the cpu-list variant of the taskset command. --- diff --git a/schedutils/taskset.1.adoc b/schedutils/taskset.1.adoc index 9609e0c9c6..56084fd3c5 100644 --- a/schedutils/taskset.1.adoc +++ b/schedutils/taskset.1.adoc @@ -93,6 +93,14 @@ You can also retrieve the CPU affinity of an existing task{colon}:: Or set it{colon}:: *taskset -p* _mask pid_ +//TRANSLATORS: Keep {colon} untranslated. +When a cpu-list is specified for an existing process, the 'p' and 'c' options must be grouped together{colon}:: +*taskset -pc* _cpu-list pid_ + +//TRANSLATORS: Keep {colon} untranslated. +The *--cpu-list* form is applicable only for launching new commands{colon}:: +*taskset --cpu-list* _cpu-list command_ + == PERMISSIONS A user can change the CPU affinity of a process belonging to the same user. A user must possess *CAP_SYS_NICE* to change the CPU affinity of a process belonging to another user. A user can retrieve the affinity mask of any process.