netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Anand Raj Manickam <anandrm@gmail.com>, netfilter-devel@vger.kernel.org
Subject: Re: Any Performance benchmark on a Million conntracks
Date: Thu, 20 May 2010 16:03:55 +0200	[thread overview]
Message-ID: <4BF5414B.4090609@trash.net> (raw)
In-Reply-To: <1274360664.4046.36.camel@edumazet-laptop>

Eric Dumazet wrote:
> Le jeudi 20 mai 2010 à 18:21 +0530, Anand Raj Manickam a écrit :
>> Hi,
>> Is there any performance bench mark on conntrack response to 1 million
>> conntrack entries in the conntrack table.
>> Since conntrack uses Hashing to lookup the entries i had some doubts
>> on the scalability. Can someone shed some light please?
> 
> Question is not about number of conntrack entries in hash table, but
> number of inserts and deletes per second.
> 
> For persistent connections, if you use a hash table of one million
> slots, performance will be very good, since the chain length is small.
> Its scalable because each cpu can access conntrack table without locks,
> in parallel.

Actually the recommended hash table size is twice the number of
expected connections since each conntrack is hashed twice :)
--
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

  reply	other threads:[~2010-05-20 14:03 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 [this message]
2010-05-20 17:13     ` Anand Raj Manickam
2010-05-20 17:44       ` Eric Dumazet
2010-05-20 23:43         ` Changli Gao
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=4BF5414B.4090609@trash.net \
    --to=kaber@trash.net \
    --cc=anandrm@gmail.com \
    --cc=eric.dumazet@gmail.com \
    --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).