From: David Miller <davem@davemloft.net>
To: alexander.h.duyck@intel.com
Cc: netdev@vger.kernel.org, jeffrey.t.kirsher@intel.com, edumazet@google.com
Subject: Re: [PATCH] ipv4: Add sysctl knob to control early socket demux
Date: Fri, 22 Jun 2012 17:15:09 -0700 (PDT) [thread overview]
Message-ID: <20120622.171509.1112294083000632011.davem@davemloft.net> (raw)
In-Reply-To: <20120621235011.29846.29715.stgit@gitlad.jf.intel.com>
From: Alexander Duyck <alexander.h.duyck@intel.com>
Date: Thu, 21 Jun 2012 16:58:31 -0700
> This change is meant to add a control for disabling early socket demux.
> The main motivation behind this patch is to provide an option to disable
> the feature as it adds an additional cost to routing that reduces overall
> throughput by up to 5%. For example one of my systems went from 12.1Mpps
> to 11.6 after the early socket demux was added. It looks like the reason
> for the regression is that we are now having to perform two lookups, first
> the one for an established socket, and then the one for the routing table.
>
> By adding this patch and toggling the value for ip_early_demux to 0 I am
> able to get back to the 12.1Mpps I was previously seeing.
>
> Cc: David S. Miller <davem@davemloft.net>
> Cc: Eric Dumazet <edumazet@google.com>
> Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
I applied this for now, making a minor change to move the local
variables down into the new basic block you created.
There has got to be a way to make this really cheap. At the very
least we can have the GRO code store away the ports and therefore
allow us to just do a direct call to try and demux the socket. Thus,
we'd avoid all of pskb_may_pull() et al. packet validations, and
packet header pointer calculations.
Furthermore, we can reduce to overhead by making a special inet
established hash demux that doesn't check for time-wait sockets,
reducing the number of probes to 1 from 2.
next prev parent reply other threads:[~2012-06-23 0:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-21 23:58 [PATCH] ipv4: Add sysctl knob to control early socket demux Alexander Duyck
2012-06-23 0:15 ` David Miller [this message]
2012-06-23 5:45 ` Eric Dumazet
2012-06-23 6:00 ` David Miller
2012-06-23 6:03 ` 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=20120622.171509.1112294083000632011.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=alexander.h.duyck@intel.com \
--cc=edumazet@google.com \
--cc=jeffrey.t.kirsher@intel.com \
--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).