Difference between revisions of "Taskset"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
<code>[[taskset -p]]</code> | <code>[[taskset -p]]</code> | ||
+ | |||
+ | |||
+ | taskset -p 17234 | ||
+ | pid 17234's current affinity mask: ffffffffffffffffffffffffffffffff | ||
+ | |||
+ | taskset -p 17234 | grep pid | awk '{print $NF}' |tr -d '\n' | wc -m | ||
+ | 32 | ||
+ | |||
== Related == | == Related == |
Latest revision as of 09:07, 24 March 2023
wikipedia:taskset set or retrieve a process's CPU affinity.
taskset -p 17234 pid 17234's current affinity mask: ffffffffffffffffffffffffffffffff
taskset -p 17234 | grep pid | awk '{print $NF}' |tr -d '\n' | wc -m 32
Related[edit]
See also[edit]
Advertising: