Skip to contentSkip to conversation

doc: add knowing issue for i40e VF performance

PATCH Superseded Qi Zhang 2 participants 2 messages Jul 2, 2017

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Qi Zhang

author
#0 lore raw

PATCH 1/1 doc: add knowing issue for i40e VF performance

VF performance is limited by some kernel PCI setting. Update the document to explain the knowing issue and work around solution.

---
 doc/guides/nics/i40e.rst | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
doc/guides/nics/i40e.rst +24 -0
index 4d3c7ca..557d83d 100644
@@ -447,3 +447,27 @@ It means if APP has set the max bandwidth for that TC, it comes to no
 effect.
 It's suggested to set the strict priority mode for a TC that is latency
 sensitive but no consuming much bandwidth.
+
+VF performance is impacted by PCI extended tag setting
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+To reach maximum NIC performance. PCI extended tag is required to be enabled.
+DPDK I40E PF drvier will set this feature during initialization, but Kernel PF
+driver does not. So when running traffic on a VF which is  managed by kernel
+PF driver, we saw significent NIC performance downgrade (for 64 bytes packet,
+there is about 25% linerate downgrade for 25G device and about 35% for 40G
+device).
+
+Solution:
+
+For kernel version >= 4.11, kernel's PCI driver will enale extended tag if it
+detects that device support extended tag. So by default, this is not an issue.
+When extended tag is be disabled by occasionally, to re-enable it, see below.
+
+For kernel version < 4.11, use setpci command to enable PCI extended flag
+1) get current value of PCI configure register
+setpci -s <XX:XX.X> a8.w
+2) set bit 8
+value = value | 0x100
+3) set PCI configure register with new value.
+setpci -s <XX:XX.X> a8.w=<value>
Signature · 1 line
2.9.3
#1 lore raw
Quoted 46 lines

-----Original Message-----
From: Zhang, Qi Z
Sent: Sunday, July 2, 2017 1:07 PM
To: Mcnamara, John <[email protected]>; Wu, Jingjing <[email protected]>
Cc: Zhang, Helin <[email protected]>; [email protected]; Zhang, Qi Z <[email protected]>
Subject: [PATCH] doc: add knowing issue for i40e VF performance

VF performance is limited by some kernel PCI setting.
Update the document to explain the knowing issue and work around solution.

---
 doc/guides/nics/i40e.rst | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
doc/guides/nics/i40e.rst index renamed from doc/guides/nics/i40e.rst +0 -0

4d3c7ca..557d83d 100644

doc/guides/nics/i40e.rst +0 -0
@@ -447,3 +447,27 @@ It means if APP has set the max bandwidth for that

TC, it comes to no effect.
It's suggested to set the strict priority mode for a TC that is latency
sensitive but no consuming much bandwidth.

doc/guides/nics/i40e.rst +5 -0
+
+VF performance is impacted by PCI extended tag setting
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+To reach maximum NIC performance. PCI extended tag is required to be

enabled.

doc/guides/nics/i40e.rst +10 -0
+DPDK I40E PF drvier will set this feature during initialization, but
+Kernel PF driver does not. So when running traffic on a VF which is
+managed by kernel PF driver, we saw significent NIC performance
+downgrade (for 64 bytes packet, there is about 25% linerate downgrade
+for 25G device and about 35% for 40G device).
+
+Solution:
+
+For kernel version >= 4.11, kernel's PCI driver will enale extended tag
+if it detects that device support extended tag. So by default, this is

not an issue.
+When extended tag is be disabled by occasionally, to re-enable it, see below.

doc/guides/nics/i40e.rst It means if APP has set the max bandwidth for that TC, it comes to no · line 473

Quoted 8 lines
doc/guides/nics/i40e.rst +8 -0
+
+For kernel version < 4.11, use setpci command to enable PCI extended
+flag
+1) get current value of PCI configure register setpci -s <XX:XX.X> a8.w
+2) set bit 8
+value = value | 0x100
+3) set PCI configure register with new value.
+setpci -s <XX:XX.X> a8.w=<value>

To use a numbered list in the doc you should do it like this:

#. Get the current value of the PCI configure register::

      setpci -s <XX:XX.X> a8.w

#. Set bit 8::

      value = value | 0x100

#. Set the PCI configure register with new value::

      setpci -s <XX:XX.X> a8.w=<value>

John