Thread (44 messages) flat view 44 messages, 5 authors, 2015-03-23

Re: [v2 PATCH 7/10] rhashtable: Disable automatic shrinking

From: Thomas Graf <tgraf@suug.ch>
Date: 2015-03-23 10:08:53

On 03/23/15 at 08:44pm, Herbert Xu wrote:
On Mon, Mar 23, 2015 at 08:39:52PM +1100, Herbert Xu wrote:
quoted
Because with multiple rehashing it's quite easy to convert your
hash table into a linked list by repeatedly growing and shrinking.

Multiple rehashing simply cannot work unless you get rid of automatic
shrinking for the untrusted case.
Actually what I could do is allow automatic shrinking when there
are no outstanding rehashes.  So maybe we could restore this feature
after all.
OK. Maybe this patch should be posted in the context of enabling
multiple rehashes then. It is difficult to review without having
the full context. This correlation was not clear to me from the
commit message.

I have yet to understand the implications of multiple rehashes.
The idea of having to traverse N tables for each insert, removal
and lookup in a pressure situation is still frightening.

I would like to compare it with an exponential growing logic.
Eventually both approaches can be combined to limit the chain
length of rehashes.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help