Skip to content

Commit 2cc78eb

Browse files
author
Linus Torvalds
committed
Increase default RCU batching sharply
Dipankar made RCU limit the batch size to improve latency, but that approach is unworkable: it can cause the RCU queues to grow without bounds, since the batch limiter ended up limiting the callbacks. So make the limit much higher, and start planning on instead limiting the batch size by doing RCU callbacks more often if the queue looks like it might be growing too long. Signed-off-by: Linus Torvalds <[email protected]>
1 parent de21eb6 commit 2cc78eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/rcupdate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ DEFINE_PER_CPU(struct rcu_data, rcu_bh_data) = { 0L };
7171

7272
/* Fake initialization required by compiler */
7373
static DEFINE_PER_CPU(struct tasklet_struct, rcu_tasklet) = {NULL};
74-
static int maxbatch = 10;
74+
static int maxbatch = 10000;
7575

7676
#ifndef __HAVE_ARCH_CMPXCHG
7777
/*

0 commit comments

Comments
 (0)