All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [RFC PATCH 0/2] net:setup XPS mapping for each online CPU
@ 2018-03-15 15:08 ` Paolo Abeni
  0 siblings, 0 replies; 23+ messages in thread
From: Paolo Abeni @ 2018-03-15 15:08 UTC (permalink / raw)
  To: intel-wired-lan

Currently, most MQ netdevice setup the default XPS configuration mapping 1-1
the first real_num_tx_queues queues and CPUs and no mapping is created for
the CPUs with id greater then real_num_tx_queues, if any.

As a result, the xmit path for unconnected sockets on such cores experiences a
relevant overhead in netdev_pick_tx(), which needs to dissect each packet and
compute its hash.

Such scenario is easily triggered. e.g. from DNS server under relevant load, as
the user-space process is moved away from the CPUs serving the softirqs (note:
this is beneficial for the overall DNS server performances).

This series introduces an helper to easily setup up XPS mapping for all the
online CPUs, and use it in the ixgbe driver, demonstrating a relevant
performance improvement in the above scenario.

Paolo Abeni (2):
  net: introduce netif_set_xps()
  ixgbe: setup XPS via netif_set_xps()

 drivers/net/ethernet/intel/ixgbe/ixgbe.h         |  2 +-
 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c |  1 +
 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c    | 13 ++----
 include/linux/netdevice.h                        |  6 +++
 net/core/dev.c                                   | 58 ++++++++++++++++++------
 5 files changed, 55 insertions(+), 25 deletions(-)

-- 
2.14.3


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2018-03-15 17:47 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-15 15:08 [Intel-wired-lan] [RFC PATCH 0/2] net:setup XPS mapping for each online CPU Paolo Abeni
2018-03-15 15:08 ` Paolo Abeni
2018-03-15 15:08 ` [Intel-wired-lan] [RFC PATCH 1/2] net: introduce netif_set_xps() Paolo Abeni
2018-03-15 15:08   ` Paolo Abeni
2018-03-15 15:08 ` [Intel-wired-lan] [RFC PATCH 2/2] ixgbe: setup XPS via netif_set_xps() Paolo Abeni
2018-03-15 15:08   ` Paolo Abeni
2018-03-15 16:43   ` [Intel-wired-lan] " Alexander Duyck
2018-03-15 16:43     ` Alexander Duyck
2018-03-15 17:05     ` Paolo Abeni
2018-03-15 17:05       ` Paolo Abeni
2018-03-15 17:22       ` Alexander Duyck
2018-03-15 17:22         ` Alexander Duyck
2018-03-15 15:30 ` [Intel-wired-lan] [RFC PATCH 0/2] net:setup XPS mapping for each online CPU Eric Dumazet
2018-03-15 15:31 ` Eric Dumazet
2018-03-15 15:31   ` Eric Dumazet
2018-03-15 15:51   ` [Intel-wired-lan] " Paolo Abeni
2018-03-15 15:51     ` Paolo Abeni
2018-03-15 15:59     ` [Intel-wired-lan] " Eric Dumazet
2018-03-15 15:59       ` Eric Dumazet
2018-03-15 17:20       ` [Intel-wired-lan] " Paolo Abeni
2018-03-15 17:20         ` Paolo Abeni
2018-03-15 17:47         ` [Intel-wired-lan] " Alexander Duyck
2018-03-15 17:47           ` Alexander Duyck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.