From: Anton Blanchard <anton@samba.org>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Subject: Re: ARP garbage collection issues in 3.1?
Date: Wed, 2 Nov 2011 21:07:31 +1100 [thread overview]
Message-ID: <20111102210731.281c3277@kryten> (raw)
In-Reply-To: <20111102.004820.1600243559959513379.davem@davemloft.net>
Hi Dave,
> > Any ideas how we could make this behave a bit better? I know setting
> > gc_thresh3 higher is the ultimate solution, but if gc_thresh1 and
> > gc_thresh2 are always below the route threshold we should either fix
> > this issue or remove them completely.
>
> The solution is to do refcount'less RCU lookups into the neigh
> tables on every packet send, and long term that's what I intend
> to implement.
>
> That's what's behind making the recent change to make the ARP hash
> cheaper etc.
>
> See slides 5, 6, and 7 in:
>
> http://vger.kernel.org/netconf2011_slides/davem_netconf2011.pdf
>
> Once that's done you can trim whatever neigh entries you want,
> whenever you want.
>
> You are right that the current situation is silly, because if
> we're willing to commit to N routing table entries we might as
> well be willing to commit to N arp table entries as well.
Thanks for clearing it up! Looking forwards to the new scheme :)
Anton
prev parent reply other threads:[~2011-11-02 10:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-02 4:34 ARP garbage collection issues in 3.1? Anton Blanchard
2011-11-02 4:48 ` David Miller
2011-11-02 10:07 ` Anton Blanchard [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=20111102210731.281c3277@kryten \
--to=anton@samba.org \
--cc=davem@davemloft.net \
--cc=netdev@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).