From: Octavian Purdila <opurdila@ixiacom.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Stephen Hemminger <shemminger@vyatta.com>,
Lucian Adrian Grijincu <lgrijincu@ixiacom.com>,
netdev@vger.kernel.org
Subject: Re: neighbour table RCU
Date: Tue, 1 Sep 2009 19:56:45 +0300 [thread overview]
Message-ID: <200909011956.45811.opurdila@ixiacom.com> (raw)
In-Reply-To: <4A9D486D.4020408@gmail.com>
On Tuesday 01 September 2009 19:14:37 Eric Dumazet wrote:
> Octavian Purdila a écrit :
> > On Tuesday 01 September 2009 09:50:17 Eric Dumazet wrote:
> >> Stephen Hemminger a écrit :
> >>> Looking at the neighbour table, it should be possible to get
> >>> rid of the two reader/writer locks. The hash table lock is pretty
> >>> amenable to RCU, but the dynamic resizing makes it non-trivial.
> >>> Thinking of using a combination of RCU and sequence counts so that the
> >>> reader would just rescan if resize was in progress.
> >>
> >> I am not sure neigh_tbl_lock rwlock should be changed, I did not
> >> see any contention on it.
> >
> > Speaking about neighbour optimizations, here is a RFC patch which makes
> > the tables double linked, for constant time deletion. It has given us a
> > significant performance improvement - in less then usual setups though,
> > with lots of neighbours.
>
> How many "struct neigh_parms" do you have in your setups, and
> what is the frequency of neigh_parms_release() calls ???
>
Each L3 interface part (at least for IPv4/IPv6 and I see DecNet as well) has a
neigh_parms associated. And we use up to 128K interfaces in certain tests
scenarios ;)
In our case the interfaces are created/destroyed dynamically, so when using a
large number of interfaces the test cleanup takes forever without this (and
other) patch(es).
Thanks,
tavi
next prev parent reply other threads:[~2009-09-01 16:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-31 22:04 neighbour table RCU Stephen Hemminger
2009-09-01 6:50 ` Eric Dumazet
2009-09-01 15:55 ` Octavian Purdila
2009-09-01 16:14 ` Eric Dumazet
2009-09-01 16:56 ` Octavian Purdila [this message]
2009-09-01 16:23 ` Stephen Hemminger
2009-09-01 15:59 ` Stephen Hemminger
2009-09-01 16:13 ` Eric Dumazet
2009-09-01 21:24 ` Stephen Hemminger
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=200909011956.45811.opurdila@ixiacom.com \
--to=opurdila@ixiacom.com \
--cc=eric.dumazet@gmail.com \
--cc=lgrijincu@ixiacom.com \
--cc=netdev@vger.kernel.org \
--cc=shemminger@vyatta.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).