[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070322194024.GA21378@2ka.mipt.ru>
Date: Thu, 22 Mar 2007 22:40:25 +0300
From: Evgeniy Polyakov <johnpol@....mipt.ru>
To: David Miller <davem@...emloft.net>
Cc: shemminger@...ux-foundation.org, netdev@...r.kernel.org
Subject: Re: [ANN] Unified dynamic storage for different socket types instead of separate hash tables.
On Thu, Mar 22, 2007 at 12:36:04PM -0700, David Miller (davem@...emloft.net) wrote:
> > > 2) An extra list insert/delete to give list of all sockets
> >
> > That is too small price.
>
> In your imagination. Our connection rates went up significantly
> when I got rid of the linked list we had many years ago.
>
> Every memory access matters.
Ok, I never liked linked lists actually. :)
This one can be completely eliminated (hmm, it does not even exist so
far) by having per-node bitmask of used/free entries - it will be
even faster than existing access and will not require locks (due to RCU
protection).
So, this allows to remove additional hlist_node structure from socket
(and change netlink one to not use it in broadcasting, so for netlink
sockets it will be moved into private netlink structure).
--
Evgeniy Polyakov
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists