Commit dbdf65b1 authored by Ingo Molnar's avatar Ingo Molnar Committed by Linus Torvalds

[PATCH] rcutorture: renice to low priority

Make the box usable for interactive work when running the RCU torture test,
by renicing the RCU torture-test threads to +19 by default.  Kthreads run
at nice -5 by default.
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Acked-by: default avatarPaul E. McKenney" <paulmck@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 66341a90
...@@ -195,6 +195,8 @@ rcu_torture_writer(void *arg) ...@@ -195,6 +195,8 @@ rcu_torture_writer(void *arg)
static DEFINE_RCU_RANDOM(rand); static DEFINE_RCU_RANDOM(rand);
VERBOSE_PRINTK_STRING("rcu_torture_writer task started"); VERBOSE_PRINTK_STRING("rcu_torture_writer task started");
set_user_nice(current, 19);
do { do {
schedule_timeout_uninterruptible(1); schedule_timeout_uninterruptible(1);
if (rcu_batches_completed() == oldbatch) if (rcu_batches_completed() == oldbatch)
...@@ -238,6 +240,8 @@ rcu_torture_reader(void *arg) ...@@ -238,6 +240,8 @@ rcu_torture_reader(void *arg)
int pipe_count; int pipe_count;
VERBOSE_PRINTK_STRING("rcu_torture_reader task started"); VERBOSE_PRINTK_STRING("rcu_torture_reader task started");
set_user_nice(current, 19);
do { do {
rcu_read_lock(); rcu_read_lock();
completed = rcu_batches_completed(); completed = rcu_batches_completed();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment