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 13:20:34 -0700 [thread overview]
Message-ID: <20041004132034.00cfe23c.davem@davemloft.net> (raw)
In-Reply-To: <20041004201525.GF27499@sunbeam.de.gnumonks.org>
On Mon, 4 Oct 2004 22:15:25 +0200
Harald Welte <laforge@gnumonks.org> wrote:
> If we go back to the initial reason for all those modifications, it was
> deployment in large networks. The gc_thresh3 default of 1k is very
> small, even if you have only 4 interfaces with /24, you will already max
> out this default.
>
> Now that the hash distribution is better, and the table resized
> dynamically, we scale better with large neighbour caches.
>
> I was thinking of registering with some notifiers and tuning gc_thresh3
> automatically to be at least as large as the theoretical number of
> immediate neigbhours. At least for multiple /24 and /16 I think this is
> still reasonable.
>
> As soon as we go further up (/8 or ipv6) the limit basically becomes
> 'unlimited', since we won't be able to receive 2^24 arp-causing packets
> per second anyway.
>
> Or be even less conservative and say: there is no limit for neighbour
> cache entries? You mentioned that *BSD didn't have a limit, IIRC.
I think tieing it to the subnet size is wrong, because the real
cap is the routing cache size. Remember the email where I was
talking about that?
I'm nearly ambivalent about a bound-less neighbour cache. I hate
to think about having tons of crap sitting in the neighbour cache
unused and sucking up memory. BSD's scheme works because when routing
entries die so do the neighbour entries they point to, so they have no
need for garbage collection like we do.
So right now I think a better idea is to have the routing cache tell
the neigh table how big it could get, or something like that.
It is a thorny issue, since usually routing cache --> neighbour cache
assosciations are VERY many to one except in these weird odd cases.
next prev parent reply other threads:[~2004-10-04 20:20 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 [this message]
2004-10-04 21:11 ` Harald Welte
2004-10-04 21:16 ` David S. Miller
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=20041004132034.00cfe23c.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).