You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
187 B
Bash
5 lines
187 B
Bash
5 years ago
|
# show process affinities for running ansible-playbook
|
||
|
who="$1"
|
||
|
[ ! "$who" ] && who=ansible-playbook
|
||
|
for i in $(pgrep -f "$who") ; do taskset -c -p $i ; done|cut -d: -f2|sort -n |uniq -c
|