Thread (11 messages) 11 messages, 6 authors, 2015-02-27

Re: [PATCH net] rhashtable: use cond_resched()

From: Daniel Borkmann <daniel@iogearbox.net>
Date: 2015-02-26 15:50:29

On 02/26/2015 04:20 PM, Eric Dumazet wrote:
From: Eric Dumazet <edumazet@google.com>

If a hash table has 128 slots and 16384 elems, expand to 256 slots
takes more than one second. For larger sets, a soft lockup is detected.

Holding cpu for that long, even in a work queue is a show stopper
for non preemptable kernels.

cond_resched() at strategic points to allow process scheduler
to reschedule us.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help