[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <45DD32C8.7060902@cosmosbay.com>
Date: Thu, 22 Feb 2007 07:06:00 +0100
From: Eric Dumazet <dada1@...mosbay.com>
To: Robert Olsson <Robert.Olsson@...a.slu.se>
CC: David Miller <davem@...emloft.net>, andi@...stfloor.org,
johnpol@....mipt.ru, akepner@....com, linux@...izon.com,
netdev@...r.kernel.org, bcrl@...ck.org
Subject: Re: Extensible hashing and RCU
Robert Olsson a écrit :
> David Miller writes:
>
> > But what about if tree lookup were free :-)
> >
> > This is why I consider Robert Olsson's trash work the most promising,
> > if we stick sockets into his full flow identified routing cache trie
> > entries, we can eliminate lookup altogether.
> >
> > Just like how he already uses traffic inspection to kill cache entries
> > when FIN shutdown sequence is snooped, we can explicitly flush such
> > entries when socket is closed fully on local system.
>
> Below is current tree-stats from a "production" flowlogging application at a
> large university (real traffic) using this full flow lookup.
>
> With 100k flows we typically see an aver depth 1.3 and a max depth 4. Right
> now there is only a dst entry in leaf nodes. So yes anything else we can put
> in leaf is "free".
>
> trie:
> Aver depth: 1.31
> Max depth: 4
> Leaves: 99930
> Internal nodes: 14925
> 1: 13450 2: 1465 3: 9 18: 1
> Pointers: 294976
> Null ptrs: 180122
> Total size: 7259 kB
>
Hi Robert
This sounds *very* promising.
I read again the pdf presentation and theory seems ok.
However you speak of average depth and max depth without mentioning
corresponding cache lines. Are all your structures under L1_CACHE_BYTES ?
Do you have a pointer to the patch so that I can take a look on it and
eventually start to think about it ? (ie adding free bits :) )
Thank you
Eric
-
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