RFC net: optimize TX throughput and efficiency
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest5 patches 16 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | net: add add indirect call wrapper in skb_release_head_state()net/ | +3 | 4 replies | |
| 2/5 | net/sched: act_mirred: add loop detectioninclude/ net/ | +31 | 2 replies | |
| 3/5 | Revert "net/sched: Fix mirred deadlock on device recursion"include/ net/ net/ | +0 | 0 replies | |
| 4/5 | net: sched: claim one cache line in Qdiscinclude/ | +7 | 0 replies | |
| 5/5 | net: dev_queue_xmit() llist adoptioninclude/ net/ net/ | +52 | 9 replies |
Reviews trailers per patch
1 of 5 patches has a Reviewed-by or Acked-by.
| Patch | Toke Høiland-Jørgensen |
|---|---|
| 1/5 | |
| 2/5 | |
| 3/5 | |
| 4/5 | |
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH RFC net-next 0/5] net: optimize TX throughput and efficiency
In this series, I replace the busylock spinlock we have in __dev_queue_xmit() and use lockless list (llist) to reduce spinlock contention to the minimum.
Idea is that only one cpu might spin on the qdisc spinlock, while others simply add their skb in the llist.
After this series, we get a 300 % (4x) improvement on heavy TX workloads, sending twice the number of packets per second, for half the cpu cycles.
Eric Dumazet (5):
net: add add indirect call wrapper in skb_release_head_state() net/sched: act_mirred: add loop detection
Revert "net/sched: Fix mirred deadlock on device recursion"
net: sched: claim one cache line in Qdisc
net: dev_queue_xmit() llist adoption
include/linux/netdevice_xmit.h | 9 +++- include/net/sch_generic.h | 23 ++++----- net/core/dev.c | 91 ++++++++++++++++++---------------- net/core/skbuff.c | 4 +- net/sched/act_mirred.c | 62 +++++++++-------------- net/sched/sch_generic.c | 7 --- 6 files changed, 93 insertions(+), 103 deletions(-)
Signature · 1 line
2.51.0.618.g983fd99d29-goog