mm/mempolicy.c: remove BUG_ON() checks for VMA inside mpol_misplaced()
[linux/fpc-iii.git] / tools / virtio / ringtest / run-on-all.sh
blob29b0d3920bfc412a049b1478a7074869cbd113df
1 #!/bin/sh
3 CPUS_ONLINE=$(lscpu --online -p=cpu|grep -v -e '#')
4 #use last CPU for host. Why not the first?
5 #many devices tend to use cpu0 by default so
6 #it tends to be busier
7 HOST_AFFINITY=$(echo "${CPUS_ONLINE}"|tail -n 1)
9 #run command on all cpus
10 for cpu in $CPUS_ONLINE
12 #Don't run guest and host on same CPU
13 #It actually works ok if using signalling
15 (echo "$@" | grep -e "--sleep" > /dev/null) || \
16 test $HOST_AFFINITY '!=' $cpu
17 then
18 echo "GUEST AFFINITY $cpu"
19 "$@" --host-affinity $HOST_AFFINITY --guest-affinity $cpu
21 done
22 echo "NO GUEST AFFINITY"
23 "$@" --host-affinity $HOST_AFFINITY
24 echo "NO AFFINITY"
25 "$@"