Difference between revisions of "Taskset"

From wikieduonline
Jump to navigation Jump to search
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{lowercase}}[[wikipedia:taskset]] set or retrieve a process's CPU [[affinity]].
+
{{lowercase}}[[wikipedia:taskset]] set or retrieve a process's [[CPU affinity]].
  
 
* https://man7.org/linux/man-pages/man1/taskset.1.html
 
* https://man7.org/linux/man-pages/man1/taskset.1.html
  
[[taskset -p]]
+
<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 ==
* [[util-linux]]
+
* <code>[[util-linux]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 09:07, 24 March 2023

wikipedia:taskset set or retrieve a process's CPU affinity.

taskset -p


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: