[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070219183807.GC10587@kvack.org>
Date: Mon, 19 Feb 2007 13:38:07 -0500
From: Benjamin LaHaise <bcrl@...ck.org>
To: Eric Dumazet <dada1@...mosbay.com>
Cc: Evgeniy Polyakov <johnpol@....mipt.ru>, akepner@....com,
linux@...izon.com, davem@...emloft.net, netdev@...r.kernel.org
Subject: Re: Extensible hashing and RCU
On Mon, Feb 19, 2007 at 01:26:42PM -0500, Benjamin LaHaise wrote:
> On Mon, Feb 19, 2007 at 07:13:07PM +0100, Eric Dumazet wrote:
> > So even with a lazy hash function, 89 % of lookups are satisfied with less
> > than 6 compares.
>
> Which sucks, as those are typically going to be cache misses (costing many
> hundreds of cpu cycles). Hash chains fair very poorly under DoS conditions,
> and must be removed under a heavy load. Worst case handling is very
> important next to common case.
I should clarify. Back of the napkin calculations show that there is only
157 cycles on a 3GHz processor in which to decide what happens to a packet,
which means 1 cache miss is more than enough. In theory we can get pretty
close to line rate with quad core processors, but it definately needs some
of the features that newer chipsets have for stuffing packets directly into
the cache. I would venture a guess that we also need to intelligently
partition packets so that we make the most use of available cache resources.
-ben
--
"Time is of no importance, Mr. President, only life is important."
Don't Email: <dont@...ck.org>.
-
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