From: Changli Gao <xiaosuo@gmail.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Anand Raj Manickam <anandrm@gmail.com>,
Patrick McHardy <kaber@trash.net>,
netfilter-devel@vger.kernel.org
Subject: Re: Any Performance benchmark on a Million conntracks
Date: Fri, 21 May 2010 07:43:53 +0800 [thread overview]
Message-ID: <AANLkTimp3nxDMgetLIB-aLhxAYrsLAT00enaBy0Fe4k-@mail.gmail.com> (raw)
In-Reply-To: <1274377493.2508.4.camel@edumazet-laptop>
On Fri, May 21, 2010 at 1:44 AM, Eric Dumazet <eric.dumazet@gmail.com> wrote:
>
> Do you have an idea of the depth of a rb tree with 1 million entries ?
>
> Well sized hash table is about 25 x faster than a rb tree in this case
> for pure lookups, and inserts and deletes in hash table are about 100x
> faster in this case.
>
> hash table : one or two cache misses per lookup or inserts/deletes
>
> rbtree with one million entries : about 25 caches misses per lookup, and
> maybe 100 cache misses per insert/delete.
>
>
and we have to do insertion and deletion in serial with rbtree, so
rbtree doesn't scales as well as hash tables for parallel processing,
if there are many insertions and deletions operations.
--
Regards,
Changli Gao(xiaosuo@gmail.com)
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-05-20 23:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-20 12:51 Any Performance benchmark on a Million conntracks Anand Raj Manickam
2010-05-20 13:04 ` Eric Dumazet
2010-05-20 14:03 ` Patrick McHardy
2010-05-20 17:13 ` Anand Raj Manickam
2010-05-20 17:44 ` Eric Dumazet
2010-05-20 23:43 ` Changli Gao [this message]
2010-05-21 2:34 ` Eric Dumazet
2010-05-21 3:06 ` Changli Gao
2010-05-21 14:05 ` Simon Lodal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTimp3nxDMgetLIB-aLhxAYrsLAT00enaBy0Fe4k-@mail.gmail.com \
--to=xiaosuo@gmail.com \
--cc=anandrm@gmail.com \
--cc=eric.dumazet@gmail.com \
--cc=kaber@trash.net \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).