scripts: import affin.sh
This commit is contained in:
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…
Reference in New Issue