Skip to content

mptcp: performance improvemets

Paolo Abeni mptcp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mptcp: properly account fastopen datanet/mptcp/fastopen.c+1 -00 replies
2/4mptcp: use plain bool instead of custom binary enumnet/mptcp/protocol.h net/mptcp/subflow.c+7 -120 replies
3/4mptcp: give rcvlowat some love.net/mptcp/protocol.c net/mptcp/protocol.h net/mptcp/sockopt.c +1 more+71 -150 replies
4/4mptcp: use copy_from_iter helpers on transmit..net/mptcp/protocol.c+15 -40 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMat Martineau
SeriesR-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH mptcp-next 0/4] mptcp: performance improvemets

Cool subj just to catch more attention;)

This is a follow-up the yday mtg and to the discussion started from issues/437.

The first 3 patches implement a working support for rcvlowat, with the intended and relevant side effect of avoiding most TCP-level immediate acks.

The existing check in:

https://elixir.bootlin.com/linux/latest/source/net/ipv4/tcp_input.c#L5534

newarly always triggers immediate ack, as the any data received on the subflow is usually immediately moved into the msk. That is, we nearly always have: tp->rcv_nxt == tp->copied_seq.

That causes an unneeded large amount of (tcp-level) ack. After patch 3, MPTCP behaves much more alike plain TCP, compressing/delaying many unneeded immediate ack and moving some of them at recvmsg() time.

Such change has quite a relevant effect on the max tput, ranging from -4% to + 40% depending on the specific setup.
The small regression happens on CPU-bounded bulk transfers, with not-so-large write buffer and can be elimitated increasing the write buffer size. Even in such scenario, the overall efficency (B/W divided by the total CPU cycles consumed) increases.
My personal take is that overall this for the better.

The last patch gives some speed-up to the tx path, just by using the 'correct' (or better) helper to memcpy the data from the user-space into the kernel buffer.

Paolo Abeni (4):
mptcp: properly account fastopen data
mptcp: use plain bool instead of custom binary enum
mptcp: give rcvlowat some love.
mptcp: use copy_from_iter helpers on transmit..

 net/mptcp/fastopen.c |  1 +
 net/mptcp/protocol.c | 42 +++++++++++++++++++++++++-----------------
 net/mptcp/protocol.h | 27 +++++++++++++++++++++------
 net/mptcp/sockopt.c  | 31 +++++++++++++++++++++++++++++++
 net/mptcp/subflow.c  | 24 ++++++++++++++++--------
 5 files changed, 94 insertions(+), 31 deletions(-)
Signature · 1 line
2.41.0