Skip to content

RFC Coalesce MMIO writes for transmits

Alexander Duyck netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: Add new network device function to allow for MMIO batchinginclude/linux/netdevice.h net/core/dev.c net/core/net-sysfs.c+160 -09 replies
2/2ixgbe: Add functionality for delaying the MMIO write for Txdrivers/net/ethernet/intel/ixgbe/ixgbe_main.c+20 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] Coalesce MMIO writes for transmits

This patch set is meant to address recent issues I found with ixgbe performance being bound by Tx tail writes. With these changes in place and the dispatch_limit set to 1 or more I see a significant increase in performance.

In the case of one of my systems I saw the routing rate for 7 queues jump from 10.5 to 11.7Mpps. The overall increase I have seen on most systems is something on the order of about 15%. In the case of pktgen I have also seen a noticeable increase as the previous limit for transmits was ~12.5Mpps, but with this patch set in place and the dispatch_limit enabled the value increases to ~14.2Mpps.

I expected there to be an increase in latency, however so far I have not ran into that. I have tried running NPtcp tests for latency and seen no difference in the coalesced and non-coalesced transaction times. I welcome any suggestions for tests I might run that might expose any latency issues as a result of this patch.

---

Alexander Duyck (2):
ixgbe: Add functionality for delaying the MMIO write for Tx
net: Add new network device function to allow for MMIO batching

 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c |   22 +++++++-
 include/linux/netdevice.h                     |   57 +++++++++++++++++++++
 net/core/dev.c                                |   67 +++++++++++++++++++++++++
 net/core/net-sysfs.c                          |   36 +++++++++++++
 4 files changed, 180 insertions(+), 2 deletions(-)
Signature · 3 lines
Thanks,

Alex