X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Fenvs%2Fhost-setup1.sh;h=e2c028a7a127f3903af2e9b11e0991e4d95db2c4;hb=7ea7eea6dab8c1b40c2626eead4ced80e77f87b9;hp=3d2de6ddffe08ffa9acc994745893e077f6d6ccd;hpb=d792accb76bb16af0cbf0710a41491d21de75721;p=kvmfornfv.git diff --git a/ci/envs/host-setup1.sh b/ci/envs/host-setup1.sh index 3d2de6ddf..e2c028a7a 100755 --- a/ci/envs/host-setup1.sh +++ b/ci/envs/host-setup1.sh @@ -39,16 +39,19 @@ echo 0 > /proc/sys/kernel/watchdog echo 0 > /proc/sys/kernel/nmi_watchdog # Change RT priority of ksoftirqd and rcuc kernel threads on isolated CPUs +startVal=$(echo ${host_isolcpus} | cut -f1 -d-) +endVal=$(echo ${host_isolcpus} | cut -f2 -d-) i=0 -for c in `echo $host_isolcpus | sed 's/,/ /g'` ; do - tid=`pgrep -a ksoftirq | grep "ksoftirqd/${c}$" | cut -d ' ' -f 1` +while [ ${startVal} -lt ${endVal} ]; do + tid=`pgrep -a ksoftirq | grep "ksoftirqd/${startVal}$" | cut -d ' ' -f 1` chrt -fp 2 ${tid} - tid=`pgrep -a rcuc | grep "rcuc/${c}$" | cut -d ' ' -f 1` + tid=`pgrep -a rcuc | grep "rcuc/${startVal}$" | cut -d ' ' -f 1` chrt -fp 3 ${tid} - cpu[$i]=${c} + cpu[$i]=${startVal} i=`expr $i + 1` + startVal=`expr $startVal + 1` done # Change RT priority of rcub kernel threads