xen-netback: always fully coalesce guest Rx packets
Subsystems (3)
PATCH v2 1/1 xen-netback: always fully coalesce guest Rx packets
Always fully coalesce guest Rx packets into the minimum number of ring slots. Reducing the number of slots per packet has significant performance benefits when receiving off-host traffic.
Results from XenServer's performance benchmarks:
Baseline Full coalesce Interhost VM receive 7.2 Gb/s 11 Gb/s Interhost aggregate 24 Gb/s 24 Gb/s Intrahost single stream 14 Gb/s 14 Gb/s Intrahost aggregate 34 Gb/s 34 Gb/s
However, this can increase the number of grant ops per packet which decreases performance of backend (dom0) to VM traffic (by ~10%) /unless/ grant copy has been optimized for adjacent ops with the same source or destination (see "grant-table: defer releasing pages acquired in a grant copy"[1] expected in Xen 4.6).
[1] http://lists.xen.org/archives/html/xen-devel/2015-01/msg01118.html
---
Changes in v2:
- Updated commit message with better results.
drivers/net/xen-netback/common.h | 1 - drivers/net/xen-netback/netback.c | 106 ++----------------------------------- 2 files changed, 3 insertions(+), 104 deletions(-)
drivers/net/xen-netback/common.h +0 -1
@@ -251,7 +251,6 @@ struct xenvif {struct xenvif_rx_cb {unsigned long expires;int meta_slots_used; -bool full_coalesce; };#define XENVIF_RX_CB (skb) ((struct xenvif_rx_cb *)(skb)->cb)
drivers/net/xen-netback/netback.c +3 -103
138 lines not on this page · raw message
Signature · 1 line
1.7.10.4
From: David Vrabel <[email protected]>
Date: Tue, 20 Jan 2015 14:49:52 +0000
Quoted 18 lines
Always fully coalesce guest Rx packets into the minimum number of ring slots. Reducing the number of slots per packet has significant performance benefits when receiving off-host traffic.
Results from XenServer's performance benchmarks:
Baseline Full coalesce Interhost VM receive 7.2 Gb/s 11 Gb/s Interhost aggregate 24 Gb/s 24 Gb/s Intrahost single stream 14 Gb/s 14 Gb/s Intrahost aggregate 34 Gb/s 34 Gb/sHowever, this can increase the number of grant ops per packet which decreases performance of backend (dom0) to VM traffic (by ~10%) /unless/ grant copy has been optimized for adjacent ops with the same source or destination (see "grant-table: defer releasing pages acquired in a grant copy"[1] expected in Xen 4.6).
Quoted 7 lines
[1] http://lists.xen.org/archives/html/xen-devel/2015-01/msg01118.html
Signed-off-by David Vrabel <[email protected]>Acked-by Ian Campbell <[email protected]>---
Changes in v2:
- Updated commit message with better results.
Applied, thanks David.
From: David Vrabel <[email protected]>
Date: Tue, 20 Jan 2015 14:49:52 +0000
Quoted 18 lines
Always fully coalesce guest Rx packets into the minimum number of ring slots. Reducing the number of slots per packet has significant performance benefits when receiving off-host traffic.
Results from XenServer's performance benchmarks:
Baseline Full coalesce Interhost VM receive 7.2 Gb/s 11 Gb/s Interhost aggregate 24 Gb/s 24 Gb/s Intrahost single stream 14 Gb/s 14 Gb/s Intrahost aggregate 34 Gb/s 34 Gb/sHowever, this can increase the number of grant ops per packet which decreases performance of backend (dom0) to VM traffic (by ~10%) /unless/ grant copy has been optimized for adjacent ops with the same source or destination (see "grant-table: defer releasing pages acquired in a grant copy"[1] expected in Xen 4.6).
Quoted 7 lines
[1] http://lists.xen.org/archives/html/xen-devel/2015-01/msg01118.html
Signed-off-by David Vrabel <[email protected]>Acked-by Ian Campbell <[email protected]>---
Changes in v2:
- Updated commit message with better results.
Applied, thanks David.