Skip to content

RFC net: deal with strange attractors tx queues

Eric Dumazet netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4net: add SK_WMEM_ALLOC_BIAS constantinclude/net/sock.h net/atm/common.c net/core/sock.c+5 -51 reply
2/4net: control skb->ooo_okay from skb_set_owner_w()net/core/sock.c+11 -11 reply
3/4net: add /proc/sys/net/core/txq_reselection_ms controlDocumentation/admin-guide/sysctl/net.rst include/net/netns/core.h net/core/net_namespace.c +1 more+24 -03 replies
4/4net: allow busy connected flows to switch tx queuesinclude/net/sock.h net/core/dev.c+44 -236 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchNeal Cardwell
1/4R-b
2/4R-b
3/4R-b
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 RFC net-next 0/4] net: deal with strange attractors tx queues

Back 2010, Tom Herbert added skb->ooo_okay to TCP flows.

Extend the feature to connected flows for other protocols like UDP.

skb->ooo_okay might never be set for bulk flows that always have at least one skb in a qdisc queue of NIC queue, especially if TX completion is delayed because of a stressed cpu.

The so-called "strange attractors" has caused many performance issues, we need to do better now that TCP deals better with potential reorders.

Add new net.core.txq_reselection_ms sysctl to let flows follow XPS and select a more efficient queue.

After this series, we no longer have to make sure threads are pinned to cpus, they now can be migrated without adding too much spinlock/qdisc/TX completion pressure anymore.

Eric Dumazet (4):
net: add SK_WMEM_ALLOC_BIAS constant
net: control skb->ooo_okay from skb_set_owner_w()
net: add /proc/sys/net/core/txq_reselection_ms control
net: allow busy connected flows to switch tx queues

 Documentation/admin-guide/sysctl/net.rst | 15 +++++++++
 include/net/netns/core.h                 |  1 +
 include/net/sock.h                       | 43 ++++++++++++------------
 net/atm/common.c                         |  2 +-
 net/core/dev.c                           | 27 +++++++++++++--
 net/core/net_namespace.c                 |  1 +
 net/core/sock.c                          | 17 +++++++---
 net/core/sysctl_net_core.c               |  7 ++++
 8 files changed, 84 insertions(+), 29 deletions(-)
Signature · 1 line
2.51.0.710.ga91ca5db03-goog