doc: add known issue for i40e VF performance
PATCH v2 1/1 doc: add known issue for i40e VF performance
VF performance is limited by the kernel PCI extended tag setting. Update the document to explain the known issue and the workaround.
---
v2:
- follow number list format.
- improve the comments.
doc/guides/nics/i40e.rst | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)
doc/guides/nics/i40e.rst +27 -0
@@ -447,3 +447,30 @@ 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 in the VF the PCI extended tag must be +enabled. The DPDK I40E PF drvier will set this feature during initialization, +but the kernel PF driver does not. So when running traffic on a VF which is +managed by the kernel PF driver, a significent NIC performance downgrade has +been observed (for 64 byte packets, there is about 25% linerate downgrade for +a 25G device and about 35% for a 40G device). + +For kernel version >= 4.11, the kernel's PCI driver will enable the extended +tag if it detects that the device supports it. So by default, this is not an +issue. For kernels <= 4.11 or When the PCI extended tag is disabled it can be +enabled using the steps below. + +#. 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>
Signature · 1 line
2.9.3
Quoted 11 lines
-----Original Message-----
From: Zhang, Qi Z
Sent: Monday, July 3, 2017 4:58 AM
To: Mcnamara, John <[email protected]>; Wu, Jingjing <[email protected]>
Cc: Zhang, Helin <[email protected]>; [email protected]; Zhang, Qi Z <[email protected]>
Subject: [PATCH v2] doc: add known issue for i40e VF performance
Quoted 4 lines
VF performance is limited by the kernel PCI extended tag setting. Update the document to explain the known issue and the workaround.
Signed-off-by Qi Zhang <[email protected]>
Quoted 4 lines · Qi Zhang
VF performance is limited by the kernel PCI extended tag setting. Update the document to explain the known issue and the workaround.
Signed-off-by Qi Zhang <[email protected]>
Hi Qi, John,
Not related to the content, but related to location, where a "known issue" should go, release notes or component specific document?
Thanks,
ferruh
Hi,
Few typos spotted
03/07/2017 05:57, Qi Zhang:
doc/guides/nics/i40e.rst It means if APP has set the max bandwidth for that TC, it comes to no · line 455
Quoted 12 lines
doc/guides/nics/i40e.rst +6
-0@@ -447,3 +447,30 @@ 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 in the VF the PCI extended tag must be +enabled. The DPDK I40E PF drvier will set this feature during initialization,
drvier -> driver
doc/guides/nics/i40e.rst It means if APP has set the max bandwidth for that TC, it comes to no · line 457
Quoted 2 lines
doc/guides/nics/i40e.rst +2
-0+but the kernel PF driver does not. So when running traffic on a VF which is +managed by the kernel PF driver, a significent NIC performance downgrade has
significent -> significant
doc/guides/nics/i40e.rst It means if APP has set the max bandwidth for that TC, it comes to no · line 463
Quoted 6 lines
doc/guides/nics/i40e.rst +6
-0+been observed (for 64 byte packets, there is about 25% linerate downgrade for +a 25G device and about 35% for a 40G device). + +For kernel version >= 4.11, the kernel's PCI driver will enable the extended +tag if it detects that the device supports it. So by default, this is not an +issue. For kernels <= 4.11 or When the PCI extended tag is disabled it can be
When -> when
Quoted 13 lines
doc/guides/nics/i40e.rst +13
-0+enabled using the steps below. + +#. 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>
PATCH v3 1/1 doc: add known issue for i40e VF performance
In reply to Qi ZhangVF performance is limited by the kernel PCI extended tag setting. Update the document to explain the known issue and the workaround.
---
v3:
- fix typos errors.
v2:
- follow number list format.
- improve the comments.
doc/guides/nics/i40e.rst | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)
doc/guides/nics/i40e.rst +27 -0
@@ -447,3 +447,30 @@ 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 in the VF the PCI extended tag must be +enabled. The DPDK I40E PF driver will set this feature during initialization, +but the kernel PF driver does not. So when running traffic on a VF which is +managed by the kernel PF driver, a significant NIC performance downgrade has +been observed (for 64 byte packets, there is about 25% linerate downgrade for +a 25G device and about 35% for a 40G device). + +For kernel version >= 4.11, the kernel's PCI driver will enable the extended +tag if it detects that the device supports it. So by default, this is not an +issue. For kernels <= 4.11 or when the PCI extended tag is disabled it can be +enabled using the steps below. + +#. 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>
Signature · 1 line
2.9.3
Ferruh Yigit
AppliedQuoted 4 lines · Qi Zhang
VF performance is limited by the kernel PCI extended tag setting. Update the document to explain the known issue and the workaround.
Signed-off-by Qi Zhang <[email protected]>
Applied to dpdk-next-net/master, thanks.