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

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

From: Patrick McHardy <hidden>
Date: 2015-02-26 15:46:50

On 26.02, David Laight wrote:
From: Eric Dumazet 
Sent: 26 February 2015 15:21
quoted
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.
What on earth is it doing?
Presumably something to do with the rcu actions needed to allow
lockless lookup during resize.

There has to be a better solution?
Perhaps even two sets of chain pointers down the hash lists.
Then the old hash table can be kept completely valid while the
whole 'unzip' action is done.
One of the main points of rhashtable is that you don't need those.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help