mitogen/scripts/affin.sh

5 lines
187 B
Bash
Raw Normal View History

2019-07-31 00:49:44 +00:00
# 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