diff options
author | Ingo Molnar <mingo@elte.hu> | 2005-11-13 19:07:22 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-13 21:14:15 -0500 |
commit | dbdf65b1b7f8ec48bda1604cfea7ac09ce583d6b (patch) | |
tree | f6a278d3e0353beb777d4ed2414cae1d00a31602 /kernel/rcutorture.c | |
parent | 66341a905ef5b3e7aea65b5d9bd1b0361b0ccc61 (diff) |
[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: Ingo Molnar <mingo@elte.hu>
Acked-by: Paul E. McKenney" <paulmck@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/rcutorture.c')
-rw-r--r-- | kernel/rcutorture.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c index 9b58f1eff3ca..eb6719c50b4e 100644 --- a/kernel/rcutorture.c +++ b/kernel/rcutorture.c | |||
@@ -195,6 +195,8 @@ rcu_torture_writer(void *arg) | |||
195 | static DEFINE_RCU_RANDOM(rand); | 195 | static DEFINE_RCU_RANDOM(rand); |
196 | 196 | ||
197 | VERBOSE_PRINTK_STRING("rcu_torture_writer task started"); | 197 | VERBOSE_PRINTK_STRING("rcu_torture_writer task started"); |
198 | set_user_nice(current, 19); | ||
199 | |||
198 | do { | 200 | do { |
199 | schedule_timeout_uninterruptible(1); | 201 | schedule_timeout_uninterruptible(1); |
200 | if (rcu_batches_completed() == oldbatch) | 202 | if (rcu_batches_completed() == oldbatch) |
@@ -238,6 +240,8 @@ rcu_torture_reader(void *arg) | |||
238 | int pipe_count; | 240 | int pipe_count; |
239 | 241 | ||
240 | VERBOSE_PRINTK_STRING("rcu_torture_reader task started"); | 242 | VERBOSE_PRINTK_STRING("rcu_torture_reader task started"); |
243 | set_user_nice(current, 19); | ||
244 | |||
241 | do { | 245 | do { |
242 | rcu_read_lock(); | 246 | rcu_read_lock(); |
243 | completed = rcu_batches_completed(); | 247 | completed = rcu_batches_completed(); |