diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-08-24 16:11:19 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-08-24 16:11:19 -0300 |
commit | 3271567b93b5f8c0c61a017a7748c621e89dfe37 (patch) | |
tree | 8ce333793186edb4b869708ca30d856250ae0382 | |
parent | 823406b06a23246a85347d997d546ec3b638b477 (diff) | |
download | tuna-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-x | testuna | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |