netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* using rhashtable in inethash
@ 2014-08-25 23:12 David Miller
  2014-08-25 23:33 ` Thomas Graf
  2014-08-25 23:35 ` Eric Dumazet
  0 siblings, 2 replies; 6+ messages in thread
From: David Miller @ 2014-08-25 23:12 UTC (permalink / raw)
  To: tgraf; +Cc: eric.dumazet, netdev


During the Networking Workshop I mentioned converting the inet hash
tables over to rhashtable so that we don't allocate this insanely
large hash table at boot time which goes largely unused.

I took a quick look at this last night and the only thing we really
need is the addition of a set of rhashtable interfaces which use
NULLs lists, as the inet hashtables currently require.

Also, I noticed in the netlink changes this really expensive
synchronize_net() added to netlink_release(), is that _really_
necessary?

That's really expensive and my impression was that such a sync is only
needed during hash table resizing, not when getting rid of objects
that we in an rhashtable.

Thomas?

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-08-26  0:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-25 23:12 using rhashtable in inethash David Miller
2014-08-25 23:33 ` Thomas Graf
2014-08-25 23:36   ` David Miller
2014-08-25 23:35 ` Eric Dumazet
2014-08-25 23:42   ` Thomas Graf
2014-08-26  0:56     ` Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).