All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Abeni <pabeni@redhat.com>
To: Florian Westphal <fw@strlen.de>, Christoph Paasch <cpaasch@apple.com>
Cc: mptcp@lists.linux.dev
Subject: Re: [PATCH v2 mptcp-next 1/8] mptcp: enable busypoll from mptcp receive path
Date: Fri, 14 May 2021 12:50:53 +0200	[thread overview]
Message-ID: <b5a2c0c468b6cf270b4afbd749878fde32c8f3da.camel@redhat.com> (raw)
In-Reply-To: <c5a5f4c6d85180665fcead4634c9af0fa52fdff0.camel@redhat.com>

On Fri, 2021-05-14 at 12:35 +0200, Paolo Abeni wrote:
> We will have a N:1 mapping (where N is the number of subflows using the
> code above and could be "optimized" to the number of different napi_id
> in use by such subflows with the changes discussed in the last part of
> my previous email).
> 
> But still should not introuce additional latency. If e.g. we are
> polling on napi_id_1 and packets arrive on napi id_2, since the msk
> socket lock is not held, the rx subflow input path will deliver them to
> the msk receive queue and the:
> 
> 	'if (skb_queue_empty_lockless(&sk->sk_receive_queue))'
> 
> check will terminate the loop as soon as polling no napi_id_1
> completes.
> 
> Well, that could actually introduce some latency, e.g. if napi_id_1 is
> under heavy traffic sent from some different peer. Not 110% sure
> anyway: BP reduce lantency mostly by avoiding tripping on the process
> scheduler, and we will get that part right.
> 
> Assuming this later consideration is correct, we could eventually
> consider always doing busy polling on a single napi instance (belonging
> to an active, non backup subflow) even in presence of multiple active
> subflows, and that should still reduce latency.

If I read correctly, this is roughly the approach used by mptcp.org
> 
> I guess a little experimentation will help ;) 

@Christoph, do you have info/paper/data for BP && mptcp && multiple
napi ids? Or (half-seriously) some university PHD willing do some
academic research on it? ;)))

/P



  reply	other threads:[~2021-05-14 10:50 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-11 13:36 [PATCH v2 mptcp-next 0/8] add cmsg support to receive path Florian Westphal
2021-05-11 13:36 ` [PATCH v2 mptcp-next 1/8] mptcp: enable busypoll from mptcp " Florian Westphal
2021-05-12  8:19   ` Paolo Abeni
2021-05-12  9:08     ` Florian Westphal
2021-05-12 10:04     ` Florian Westphal
2021-05-12 15:06       ` Paolo Abeni
2021-05-14  9:57         ` Florian Westphal
2021-05-14 10:35           ` Paolo Abeni
2021-05-14 10:50             ` Paolo Abeni [this message]
2021-05-11 13:36 ` [PATCH v2 mptcp-next 2/8] sock: expose so_timestamp options for mptcp Florian Westphal
2021-05-19  8:58   ` [sock] d1023bc19b: kernel-selftests.net.rxtimestamp.sh.fail kernel test robot
2021-05-19  8:58     ` kernel test robot
2021-05-11 13:36 ` [PATCH v2 mptcp-next 3/8] sock: expose so_timestamping options for mptcp Florian Westphal
2021-05-11 13:36 ` [PATCH v2 mptcp-next 4/8] mptcp: sockopt: propagate timestamp request to subflows Florian Westphal
2021-05-11 13:36 ` [PATCH v2 mptcp-next 5/8] mptcp: setsockopt: handle SOL_SOCKET in one place only Florian Westphal
2021-05-11 13:36 ` [PATCH v2 mptcp-next 6/8] tcp: export timestamp helpers for mptcp Florian Westphal
2021-05-11 13:36 ` [PATCH v2 mptcp-next 7/8] mptcp: receive path cmsg support Florian Westphal
2021-05-11 13:36 ` [PATCH v2 mptcp-next 8/8] selftests: mptcp_connect: add SO_TIMESTAMPNS " Florian Westphal

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=b5a2c0c468b6cf270b4afbd749878fde32c8f3da.camel@redhat.com \
    --to=pabeni@redhat.com \
    --cc=cpaasch@apple.com \
    --cc=fw@strlen.de \
    --cc=mptcp@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.