scripts: import affin.sh

pull/612/head
David Wilson 5 years ago
parent 558ebfa914
commit 6f7941d616

@ -0,0 +1,4 @@
# 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
Loading…
Cancel
Save