summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2012-08-24 16:11:19 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-08-24 16:11:19 -0300
commit3271567b93b5f8c0c61a017a7748c621e89dfe37 (patch)
tree8ce333793186edb4b869708ca30d856250ae0382
parent823406b06a23246a85347d997d546ec3b638b477 (diff)
downloadtuna-3271567b93b5f8c0c61a017a7748c621e89dfe37.tar.gz
testuna: Update some of the guinea pig kernel threads
On 3.6.0-rt1 we don't have events/*, don't try to change migration/* scheduler policy, it'll fail. Use watchdog/*, reducing its prio to current - 1, now it is back working: [root@sandy tuna]# ./testuna PASS: Healthy tuna, no lead found, eat! [root@sandy tuna]# Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rwxr-xr-xtestuna8
1 files changed, 4 insertions, 4 deletions
diff --git a/testuna b/testuna
index bf6f249..4bf91eb 100755
--- a/testuna
+++ b/testuna
@@ -107,7 +107,7 @@ rtctl --file $INITIAL reset
die_if_conf_changed "Replaying initial config"
-PID=$(ktpidof "migration")
+PID=$(ktpidof "watchdog")
RTPRIO=$(get_rtprio $PID)
POLICY=$(get_policy $PID)
POLICY=$(echo ${POLICY:6:1} | tr 'A-Z' 'a-z')
@@ -129,7 +129,7 @@ chrt -$POLICY -p $RTPRIO $PID
die_if_conf_changed 'Restoring kernel thread sched policy'
-PID=$(ktpidof "khelper")
+PID=$(ktpidof "kthreadd")
AFFINITY=$(get_affinity $PID)
taskset -p 0x2 $PID > /dev/null
@@ -210,10 +210,10 @@ if [ $NR_CPU_SOCKETS -ge 2 ]; then
fi
if [ $NR_PROCESSORS -gt 2 ]; then
- THREAD_PREFIX="events/"
+ THREAD_PREFIX="watchdog/"
PID=$(ps h -C ${THREAD_PREFIX}0 -o pid)
RTPRIO=$(get_rtprio $PID)
- NEW_RTPRIO=$((RTPRIO + 1))
+ NEW_RTPRIO=$((RTPRIO - 1))
tuna -t $THREAD_PREFIX* -p $NEW_RTPRIO
for CPU in $(seq 0 $((NR_PROCESSORS - 1))); do
PID=$(ps h -C ${THREAD_PREFIX}$CPU -o pid)