[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-netdev
Subject: Re: [PATCH net-next 2/2] rhashtable: Quick initial growth of tables
From: Herbert Xu <herbert () gondor ! apana ! org ! au>
Date: 2015-04-30 23:45:56
Message-ID: 20150430234556.GA31180 () gondor ! apana ! org ! au
[Download RAW message or body]
Thomas Graf <tgraf@suug.ch> wrote:
> Grow the table quicker than 2x in the beginning to avoid long chains
> of rehashes. The effect is observable in the self-test where table
> jumps are reduced to a minimum after a lot of entries have been added
> in a short period of time. The iterator is able to get a consistent
> view most of the time.
>
> Signed-off-by: Thomas Graf <tgraf@suug.ch>
Wouldn't automatic shrinking immediately undo your quick growth?
Cheers,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic