netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@davemloft.net>
To: Harald Welte <laforge@gnumonks.org>
Cc: netdev@oss.sgi.com
Subject: Re: [PATCH 2.4] backport neighbour cache redesign
Date: Mon, 4 Oct 2004 14:16:51 -0700	[thread overview]
Message-ID: <20041004141651.153ec066.davem@davemloft.net> (raw)
In-Reply-To: <20041004211158.GG27499@sunbeam.de.gnumonks.org>

On Mon, 4 Oct 2004 23:11:58 +0200
Harald Welte <laforge@gnumonks.org> wrote:

> yes, I remember that email.  I didn't think further about it, since I
> got the feeling that there is significant movement to get rid of the
> neighbour cache at some point (if/when there is some fast lookup
> algorithm implemented) - and if we look at ipv6, there is no routing
> cache.

Another idea is to dynamically grow the thresholds based upon usage
just as we do for the hash tables.  For example, if we find say %90
of neighbour entries in-use at forced GC time, we increment the
thresholds by some factor.

Note that the "in-use" part is very important, it prevents a DoS
spam from growing the neighbour cache since such traffic causes
neighbour entries to quickly become unused.

      reply	other threads:[~2004-10-04 21:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-30 15:47 [PATCH 2.4] backport neighbour cache redesign Harald Welte
2004-10-04 19:17 ` David S. Miller
2004-10-04 20:15   ` Harald Welte
2004-10-04 20:20     ` David S. Miller
2004-10-04 21:11       ` Harald Welte
2004-10-04 21:16         ` David S. Miller [this message]

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=20041004141651.153ec066.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=laforge@gnumonks.org \
    --cc=netdev@oss.sgi.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 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).