aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/rcutorture/bin/kvm-remote.sh
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2021-03-30 16:30:32 -0700
committerPaul E. McKenney <paulmck@kernel.org>2021-05-10 16:05:06 -0700
commitea6d962e80b61996aeacb443661cc3adcb605315 (patch)
tree6cad016e839cae947ba8f6de45366f433caf8f61 /tools/testing/selftests/rcutorture/bin/kvm-remote.sh
parenttorture: Make kvm-find-errors.sh account for kvm-remote.sh (diff)
downloadlinux-dev-ea6d962e80b61996aeacb443661cc3adcb605315.tar.xz
linux-dev-ea6d962e80b61996aeacb443661cc3adcb605315.zip
rcutorture: Judge RCU priority boosting on grace periods, not callbacks
Currently, rcutorture's testing of RCU priority boosting insists not only that grace periods complete, but also that callbacks be invoked. Although this is in fact what the user would want, ensuring that there is sufficient CPU bandwidth devoted to callback execution is in fact the user's responsibility. One could argue that rcutorture can take on that responsibility, which is true in theory. But in practice, ensuring sufficient CPU bandwidth to ksoftirqd, any rcuc kthreads, and any rcuo kthreads is not particularly consistent with rcutorture's main job, that of stress-testing RCU. In addition, if the system administrator (say) makes very poor choices when pinning rcuo kthreads and then runs rcutorture, there really isn't much rcutorture can do. Besides, RCU priority boosting only boosts lagging readers, not all the machinery required to invoke callbacks in a timely fashion. This commit therefore switches rcutorture's evaluation of RCU priority boosting from callback execution to grace-period completion by using the new start_poll_synchronize_rcu() and poll_state_synchronize_rcu() functions. When rcutorture is built in (as in when there is no innocent workload to inconvenience), the ksoftirqd ktheads are boosted to real-time priority 2 in order to allow timeouts to work properly in the face of rcutorture's testing of RCU priority boosting. Indeed, it is not as easy as it looks to create a reliable test of RCU priority boosting without destroying the rest of the kernel! Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/testing/selftests/rcutorture/bin/kvm-remote.sh')
0 files changed, 0 insertions, 0 deletions