Skip to content

net_sched: sch_fq: round of improvements

Eric Dumazet netdev 2 versions Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 6 repliesApplied 5/5
  2. v14 patches 0 repliesSuperseded

Patches in v2 All 5 applied

#Subject and filesSizeRepliesApplied
1/5net_sched: constify qdisc_priv()include/net/pkt_sched.h+4 -43 repliesApplied
2/5net_sched: sch_fq: struct sched_data reorgnet/sched/sch_fq.c+12 -40 repliesApplied
3/5net_sched: sch_fq: change how @inactive is trackednet/sched/sch_fq.c+7 -50 repliesApplied
4/5net_sched: sch_fq: add fast path for mostly idle qdiscinclude/uapi/linux/pkt_sched.h net/sched/sch_fq.c+92 -370 repliesApplied
5/5net_sched: sch_fq: always garbage collectnet/sched/sch_fq.c+1 -30 repliesApplied

Reviews trailers per patch

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

PatchArd BiesheuvelPeter ZijlstraJamal Hadi SalimWillem de BruijnToke Høiland-Jørgensen
SeriesR-b R-b R-b
1/5A-b A-b
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v2 thread

Cover letter [PATCH v2 net-next 0/5] net_sched: sch_fq: round of improvements

For FQ tenth anniversary, it was time for making it faster.

The FQ part (as in Fair Queue) is rather expensive, because we have to classify packets and store them in a per-flow structure, and add this per-flow structure in a hash table. Then the RR lists also add cache line misses.

Most fq qdisc are almost idle. Trying to share NIC bandwidth has no benefits, thus the qdisc could behave like a FIFO.

This series brings a 5 % throughput increase in intensive tcp_rr workload, and 13 % increase for (unpaced) UDP packets.

v2: removed an extra label (build bot).
Fix an accidental increase of stat_internal_packets counter in fast path.
Added "constify qdisc_priv()" patch to allow fq_fastpath_check() first parameter to be const.
typo on 'eligible' (Willem)

Eric Dumazet (5):
net_sched: constify qdisc_priv()
net_sched: sch_fq: struct sched_data reorg
net_sched: sch_fq: change how @inactive is tracked
net_sched: sch_fq: add fast path for mostly idle qdisc
net_sched: sch_fq: always garbage collect

 include/net/pkt_sched.h        |   8 +-
 include/uapi/linux/pkt_sched.h |   1 +
 net/sched/sch_fq.c             | 148 +++++++++++++++++++++++----------
 3 files changed, 110 insertions(+), 47 deletions(-)
Signature · 1 line
2.42.0.459.ge4e396fd5e-goog