All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Schaaf <bof@bof.de>
To: jump lee <zomby_cn@hotmail.com>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: a question about ip_conntrack_max
Date: Thu, 12 Dec 2002 08:21:43 +0100	[thread overview]
Message-ID: <20021212072143.GA19846@oknodo.bof.de> (raw)
In-Reply-To: <F78gEj4v5iJarnJ3kEP000004e7@hotmail.com>

Hello,

(removed Harald Welte from Cc: - I'm sure he's reading the list, anyway)

> i am hacking ip_conntrack.

What is your goal?

> ip_conntrack_max=8*ip_conntrack_htable_size;
> 
> what's the reason of multiplying ip_conntrack_htable_size by 8?

It gives you 8 times as much conntrack entries as you have
conntrack hash buckets.  Isn't 8 a nice number?  What number
would you prefer, and why?  The kernel has to derive ip_conntrack_max
SOMEHOW, and that's the way it does it now. There is another equally
arbitrary choice of ip_conntrack_htable_size, which is calculated
from the amount of memory in your machine. Again, the kernel has to do
SOMETHING in the absence of configuration information.

best regards
  Patrick

  reply	other threads:[~2002-12-12  7:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-12  6:35 a question about ip_conntrack_max jump lee
2002-12-12  7:21 ` Patrick Schaaf [this message]
2002-12-12 12:32 ` Harald Welte

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=20021212072143.GA19846@oknodo.bof.de \
    --to=bof@bof.de \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=zomby_cn@hotmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.