From: Eric Dumazet <eric.dumazet@gmail.com>
To: Shawn Bohrer <sbohrer@rgmadvisors.com>
Cc: netdev@vger.kernel.org, davem@davemloft.net
Subject: Re: Performance regression from routing cache removal?
Date: Wed, 05 Jun 2013 11:13:17 -0700 [thread overview]
Message-ID: <1370455997.24311.290.camel@edumazet-glaptop> (raw)
In-Reply-To: <20130605175724.GA2576@sbohrermbp13-local.rgmadvisors.com>
On Wed, 2013-06-05 at 12:57 -0500, Shawn Bohrer wrote:
> I've got a performance regression that I've been trying to track down
> for the last couple of days. The last known good kernel was 3.4 and
> now I'm testing 3.10 so there has been a lot of changes in between.
> The workload I'm testing has a single machine receiving UDP multicast
> packets across approximately 350 multicast groups. We've got one
> socket per multicast address receiving the data. The traffic is small
> packets and tends to be very bursty. With the 3.10 kernel I'm seeing
> occasional spikes in one-way latency that are in the 100-500
> millisecond range, and regularly in the 10 millisecond range. I've
> started a git bisect which has narrowed me down to:
>
> bad f5b0a8743601a4477419171f5046bd07d1c080a0
> good fa0afcd10951afad2022dda09777d2bf70cdab3d
>
> The remaining commits are all part of the routing cache removal so
> I've stopped my bisection for now. I can bisect further if anyone
> thinks it will be valuable.
>
> Digging through the git history the ip_check_mc_rcu appears to be the
> result of the routing cache removal.
Yes, ip_check_mc_rcu() does a linear scan of your ~350 groups :
for_each_pmc_rcu(in_dev, im) {
if (im->multiaddr == mc_addr)
break;
}
next prev parent reply other threads:[~2013-06-05 18:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-05 17:57 Performance regression from routing cache removal? Shawn Bohrer
2013-06-05 18:13 ` Eric Dumazet [this message]
2013-06-05 20:32 ` Shawn Bohrer
2013-06-05 20:52 ` Eric Dumazet
2013-06-07 0:35 ` Eric Dumazet
2013-06-07 14:48 ` Shawn Bohrer
2013-06-07 15:48 ` [PATCH net-next] igmp: hash a hash table to speedup ip_check_mc_rcu() Eric Dumazet
2013-06-07 17:33 ` Shawn Bohrer
2013-06-08 4:39 ` Cong Wang
2013-06-08 5:23 ` Eric Dumazet
2013-06-10 1:58 ` Cong Wang
2013-06-12 7:26 ` David 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=1370455997.24311.290.camel@edumazet-glaptop \
--to=eric.dumazet@gmail.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=sbohrer@rgmadvisors.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